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

From: Date: Tue, 14 Nov 2000 17:05:11 +0000
Subject: PHP 4.0 Bug #7039 Updated: ip2long() and long2ip() don't work
Groups: php.dev 
Request: Send a blank email to php-dev+get-38083@lists.php.net to get a copy of this message
ID: 7039 Updated by: stas Reported By: jpm@kefta.com Status: Closed Bug Type: *Network Functions Assigned To: Comments: Fixed in CVS. Previous Comments: --------------------------------------------------------------------------- [2000-10-05 08:04:34] jpm@kefta.com 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 --------------------------------------------------------------------------- Full Bug description available at: http://bugs.php.net/?id=7039

« previous php.dev (#38083) next »