ID: 47365 Updated by: [email protected] Reported By: flobee at gmail dot com -Status: Open +Status: Feedback Bug Type: *Network Functions Operating System: SunOS PHP Version: 5.2.9RC1 New Comment:
Not enough information was provided for us to be able to handle this bug. Please re-read the instructions at http://bugs.php.net/how-to-report.php If you can provide more information, feel free to add it to this bug and change the status back to "Open". Thank you for your interest in PHP. Which Solaris Version. Solaris 10. On Sparc or on x86? On OpenSolaris x86 64 bit it returns false as expected: ~/> php -r "var_dump(ip2long('web.de'));" bool(false) ~/> isainfo -b 64 ~/> uname -a SunOS Stanford 5.11 snv_106 i86pc i386 i86pc Solaris ~/> php -v PHP 5.2.6 (cli) (built: Jan 28 2009 01:43:42) (DEBUG) Copyright (c) 1997-2008 The PHP Group Zend Engine v2.2.0, Copyright (c) 1998-2008 Zend Technologies Previous Comments: ------------------------------------------------------------------------ [2009-02-12 09:27:18] flobee at gmail dot com Description: ------------ ip2long seems to be buggy on 64 Bit Solaris: Tested with: php5.2.2, php5.2.8 Reproduce code: --------------- 64bit Solaris #php -r "echo 'x:' . ip2long('web.de') .\"\n\";" // x:4294967295 32bit Solaris #php -r "echo 'x:' . ip2long('web.de') .\"\n\";" // x:false ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=47365&edit=1
