note 73288 added to function.ip2long
| From: | laacz@php.net | Date: | Fri, 16 Feb 2007 09:06:09 +0000 |
| Subject: | note 73288 added to function.ip2long | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-123476@lists.php.net to get a copy of this message | ||
Just to save you some time.
Beware that octets in IP address are being treated as numbers. So, '10.0.0.11' is not
equal to '10.0.0.011'. '011' is octal number (base 8), so it converts to
'9'. You can even go further and see that '10.0.0.0xa' also works (equals to
'10.0.0.16').
This is not PHP issue, though.
----
Server IP: 81.94.227.69
Probable Submitter: 83.223.131.104
----
Manual Page -- http://www.php.net/manual/en/function.ip2long.php
Edit -- https://master.php.net/note/edit/73288
Del: integrated -- https://master.php.net/note/delete/73288/integrated
Del: useless -- https://master.php.net/note/delete/73288/useless
Del: bad code -- https://master.php.net/note/delete/73288/bad+code
Del: spam -- https://master.php.net/note/delete/73288/spam
Del: non-english -- https://master.php.net/note/delete/73288/non-english
Del: in docs -- https://master.php.net/note/delete/73288/in+docs
Del: other reasons-- https://master.php.net/note/delete/73288
Reject -- https://master.php.net/note/reject/73288
Search -- https://master.php.net/manage/user-notes.php