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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: chatovik at gmail dot com
New email:
PHP Version: OS:

 

 [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

Add a Patch

Pull Requests

Add a Pull Request

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: Tue Apr 23 11:01:33 2024 UTC