php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #69496 Pecl GeoIP v1.1.0 crash
Submitted: 2015-04-21 11:50 UTC Modified: 2015-04-22 11:13 UTC
From: chatovik at gmail dot com Assigned:
Status: Duplicate Package: geoip (PECL)
PHP Version: 5.4.40 OS: Windows 7 x64
Private report: No CVE-ID: None
 [2015-04-21 11:50 UTC] chatovik at gmail dot com
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

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2015-04-22 11:13 UTC] ab@php.net
-Status: Open +Status: Duplicate
 [2015-04-22 11:13 UTC] ab@php.net
Thanks for the dump, this is the same issue as in the bug #68277.

Cheers.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Nov 04 14:01:28 2024 UTC