itbdw / ip-database

免费IP离线数据库,支持IPV4+IPV6 ,国家、省、市、县、运营商
Other
1.35k stars 256 forks source link

大佬,为什么有些ip会报错,求指教要怎么改 #13

Closed Git-cup closed 5 years ago

Git-cup commented 5 years ago

QQ截图20190819185048

itbdw commented 5 years ago

请问你是怎么出现的呢,我简单测试没有复现。

PHP版本是多少,调用的代码方便发一下么

➜ ip-database git:(master) php tests/ip.php -i 61.244.30.30

Git-cup commented 5 years ago

用的是 php7,我这边测试发现,只要是香港的IP都会报错,所以我注释了下面这一段代码 注释 这是一些香港的ip: 61.244.66.190 61.244.30.30 61.244.30.30 61.244.210.244 61.244.16.190

itbdw commented 5 years ago

我知道了,你的系统应该是缺少 php-mbstring 扩展

Git-cup commented 5 years ago

非常非常非常感谢大佬,已经好了