PHP 4.0 Bug #7039: ip2long() and long2ip() don't work

From: Date: Thu, 05 Oct 2000 12:04:34 +0000
Subject: PHP 4.0 Bug #7039: ip2long() and long2ip() don't work
Groups: php.dev 
Request: Send a blank email to php-dev+get-34269@lists.php.net to get a copy of this message
From: jpm@kefta.com Operating system: Solaris 2.8 PHP version: 4.0.1pl2 PHP Bug Type: *Network Functions Bug description: ip2long() and long2ip() don't work This is the simple script I'm trying to use: <?php $ip = "255.255.255.255"; echo ip2long($ip); ?> That will echo "-1708283823", or some weird number like that, when it should be echoing "4294967295". It also does not work when I try to get the standard IP Address from "4294967295" using long2ip(), it gives some weird number. Joao Prado Maia

« previous php.dev (#34269) next »