note 105263 modified in function.long2ip by danbrown
| From: | danbrown@php.net | Date: | Fri, 05 Aug 2011 16:50:51 +0000 |
| Subject: | note 105263 modified in function.long2ip by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-182267@lists.php.net to get a copy of this message | ||
If you're running a 32 bit machine you can get wrong IPs. To prevent from this just cast to
float e.g.
<?php
long2Ip32bit($ip){
return long2ip((float)$ip);
}
?>
--was--
If you're running a 32 bit machine you can get wrong IPs. To prevent from this just cast to
float e.g.
long2Ip32bit($ip){
return long2ip((float)$ip);
}
http://php.net/manual/en/function.long2ip.php