|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2015-04-22 11:13 UTC] ab@php.net
-Status: Open
+Status: Duplicate
[2015-04-22 11:13 UTC] ab@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Oct 27 01:00:02 2025 UTC |
Description: ------------ When I try used in cmd: php test.php, I have crash php cli. Full geoip database: GeoIPCity.dat (license). php -m [PHP Modules] bcmath calendar Core ctype date dom ereg filter ftp geoip hash iconv json libxml mcrypt mhash mysqlnd odbc pcre PDO Phar Reflection session SimpleXML SPL standard tokenizer wddx xml xmlreader xmlwriter zip zlib [Zend Modules] Test script: --------------- geoip_setup_custom_directory("C:\php\geoip-data"); var_dump(geoip_record_by_name("8.8.8.8")); Expected result: ---------------- array(11) { ["continent_code"]=> string(2) "NA" ["country_code"]=> string(2) "US" ["country_code3"]=> string(3) "USA" ["country_name"]=> string(13) "United States" ["region"]=> string(0) "" ["city"]=> string(0) "" ["postal_code"]=> string(0) "" ["latitude"]=> float(38) ["longitude"]=> float(-97) ["dma_code"]=> int(0) ["area_code"]=> int(0) } Actual result: -------------- Crash php cli Crash dump analyzed file: https://www.dropbox.com/s/qdipcx7ew6a3s6n/php__PID__4924__Date__04_21_2015__Time_02_18_54PM__958__Second_Chance_Exception_C0000005_MultipleRules.mht?dl=0 Dump file: https://www.dropbox.com/s/aoyhh2f5c9mth7f/php__PID__4924__Date__04_21_2015__Time_02_18_54PM__958__Second_Chance_Exception_C0000005.dmp?dl=0