Bug #9698 Updated: ip2long and long2ip put back wrong answer

From: Date: Sun, 20 May 2001 00:27:49 +0000
Subject: Bug #9698 Updated: ip2long and long2ip put back wrong answer
Groups: php.dev 
Request: Send a blank email to php-dev+get-55931@lists.php.net to get a copy of this message
ID: 9698 Updated by: derick Reported By: sajt@amon.hu Old-Status: Open Status: Closed Bug Type: Network related Operating system: PHP Version: 4.0.4pl1 Assigned To: Comments: Fixed in CVS. This change will be available in PHP 4.0.6. Derick Previous Comments: --------------------------------------------------------------------------- [2001-03-12 05:45:56] sajt@amon.hu The script <?php $ip = gethostbyname("www.php.net"); $out = http://".ip2long($ip)."/<br>n"; echo $out; ?> and the answer is: http://-789091653/ what is wrong, because the correct answer is: http://3505875643/ --------------------------------------------------------------------------- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=9698&edit=2

« previous php.dev (#55931) next »