|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2015-07-20 16:42 UTC] anthon at piwik dot org
[2021-08-26 14:31 UTC] cmb@php.net
-Status: Open
+Status: Duplicate
-Assigned To:
+Assigned To: cmb
[2021-08-26 14:31 UTC] cmb@php.net
|
|||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Dec 14 13:00:01 2025 UTC |
Description: ------------ Hi. geoip_database_info() causes an segfault with some database IDs. No matter whether retrieving database info for these IDs makes sense or not - a segmentation fault should not occur... Tested in cli and apache2handler SAPIs. geoip extension version 1.1.0 geoip library version 1006005 Affected database IDs: 6, 17, 18, 31 Test script: --------------- php -r 'foreach(geoip_db_get_all_info() as $id => $info) { var_dump(geoip_database_info($id)); }' Expected result: ---------------- Approx 35 lines containing either something like: string(79) "GEO-106FREE 20150303 Build 1 Copyright (c) 2015 MaxMind Inc All ... or ... NULL Actual result: -------------- string(79) "GEO-106FREE 20150303 Build 1 Copyright (c) 2015 MaxMind Inc All Rights Reserved" string(79) "GEO-533LITE 20150303 Build 1 Copyright (c) 2015 MaxMind Inc All Rights Reserved" NULL NULL NULL Segmentation fault (core dumped)