note 45530 added to function.ip2long

From: Date: Thu, 09 Sep 2004 21:04:53 +0000
Subject: note 45530 added to function.ip2long
Groups: php.notes 
Request: Send a blank email to php-notes+get-76358@lists.php.net to get a copy of this message
ip2long("255.255.255.255") in php5 evaluates to false instead of -1 as ip2long did in php4. If you have legacy code from php4 that needs to be ported to php5 and it uses ip2long("255.255.255.255"), replace it with -1 and it will work again. Some function on this page and the PEAR Net_IPv4 class can be made to work under php5 by making this change. ---- Manual Page -- http://www.php.net/manual/en/function.ip2long.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+45530 Delete -- http://master.php.net/manage/user-notes.php?action=delete+45530&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+45530&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#76358) next »