Bug in ip2long() / long2ip() ?

From: Date: Wed, 04 Oct 2000 23:36:30 +0000
Subject: Bug in ip2long() / long2ip() ?
Groups: php.general 
Request: Send a blank email to php-general+get-18682@lists.php.net to get a copy of this message
Here's my configuration: - Solaris 2.8 - PHP4.0pl2 This is the code 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", some weird number. Are these known bugs or my code is just plain broken ? Joao -- Joao Prado Maia Web Developer Kefta, Inc. T: (415) 391-6881 ext 8008 F: (415) 391-7079

« previous php.general (#18682) next »