note 47004 deleted from function.ip2long by cmb
| From: | cmb@php.net | Date: | Sun, 29 Sep 2019 07:38:56 +0000 |
| Subject: | note 47004 deleted from function.ip2long by cmb | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-212408@lists.php.net to get a copy of this message | ||
Note Submitter: DivineHawk
----
For PHP5 I had to replace:
$mask_long= pow(2,32)-pow(2,(32-$ip_arr[1]));
-with-
$mask_long = 0xffffffff << (32 - $ip_arr[1]);
in dzver's IP_Match Function below.