From:             gk at gknw dot de
Operating system: all
PHP version:      5.1.4
PHP Bug Type:     Network related
Bug description:  ip2long() not accepting hex 0xffffffff

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 bug report at http://bugs.php.net/?id=38197&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=38197&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=38197&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=38197&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=38197&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=38197&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=38197&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=38197&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=38197&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=38197&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=38197&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=38197&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=38197&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=38197&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=38197&r=php3
Daylight Savings:             http://bugs.php.net/fix.php?id=38197&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=38197&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=38197&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=38197&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=38197&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=38197&r=mysqlcfg

Reply via email to