php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #41995 ip2long() sometimes return wrong value
Submitted: 2007-07-14 07:59 UTC Modified: 2007-07-22 01:00 UTC
Votes:2
Avg. Score:2.0 ± 1.0
Reproduced:2 of 2 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: pigmey_avi at gorodok dot net Assigned:
Status: No Feedback Package: Network related
PHP Version: 4.4.7 OS:
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: pigmey_avi at gorodok dot net
New email:
PHP Version: OS:

 

 [2007-07-14 07:59 UTC] pigmey_avi at gorodok dot net
Description:
------------
When ip2long() encountered triplet that can be represent as octal number, the function represent it as octal.

For instance, when ip is '10.0.0.011', the last triplet will be readed as 9, becouse 11 in 8 base is 9.

So, sometimes, ip2long() returns wrong value.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-07-22 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Jun 16 07:01:28 2024 UTC