ID:               38197
 Updated by:       [EMAIL PROTECTED]
 Reported By:      gk at gknw dot de
-Status:           Open
+Status:           Bogus
 Bug Type:         Network related
 Operating System: all
 PHP Version:      5.1.4
 New Comment:

0xffffffff is not an IP address and the underlying inet_addr() function
doesn't think it's valid too.


Previous Comments:
------------------------------------------------------------------------

[2006-07-24 19:08:23] gk at gknw dot de

Description:
------------
Although ip2long() works fine with 255.255.255.255 it fails when
0xffffffff is passed in.
Other hex values work fine.
Seems this was introduced with PHP 5.x - PHP 4.x is not affected; there
it works as I expect.


Reproduce code:
---------------
Nonworking sample on PHP 5.x:
http://www.gknw.net/test/php_issues/t_ip2long.php
Working same sample on PHP 4.x:
http://www.gknw.de/test/php_issues/t_ip2long.php
Script for download:
http://www.gknw.net/test/php_issues/t_ip2long_php.txt



Expected result:
----------------
Same result on PHP5 as with PHP4.




------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=38197&edit=1

Reply via email to