#46901 [Opn->Bgs]: ip2long() giving negative results
| From: | jani@php.net | Date: | Thu, 18 Dec 2008 14:28:48 +0000 |
| Subject: | #46901 [Opn->Bgs]: ip2long() giving negative results | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-132144@lists.php.net to get a copy of this message | ||
ID: 46901
Updated by: jani@php.net
Reported By: pedro at boxwg dot info
-Status: Open
+Status: Bogus
Bug Type: PHP options/info functions
Operating System: Linux
PHP Version: 5.2.8
New Comment:
Expected behaviour. To make it portable:
# php -r 'echo printf("%u", ip2long("161.51.11.2"));
270447693010
Previous Comments:
------------------------------------------------------------------------
[2008-12-18 14:20:38] pedro at boxwg dot info
Description:
------------
Just bumped into a somehow weird bug, reported a couple years ago and
it just popped up once again
$ip = "161.51.11.2";
echo(ip2long($ip));
returns -1590490366
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=46901&edit=1