Full support of PHP 7.2

This commit is contained in:
Mashiro 2018-06-17 18:23:56 +08:00
parent 27831aae15
commit 6e29942122

View File

@ -229,7 +229,7 @@ function convertip($ip) {
return 'IP date file not exists or access denied';
}
$ip = explode('.', $ip);
$ipNum = $ip[0] * 16777216 + $ip[1] * 65536 + $ip[2] * 256 + $ip[3];
$ipNum = intval($ip[0]) * 16777216 + intval($ip[1]) * 65536 + intval($ip[2]) * 256 + intval($ip[3]);
$DataBegin = fread($fd, 4);
$DataEnd = fread($fd, 4);
$ipbegin = implode('', unpack('L', $DataBegin));