php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Return to Bug #60066
Patch build.patch revision 2011-10-15 14:44 UTC by fedora at famillecollet dot com

Patch build.patch for geoip Bug #60066

Patch version 2011-10-15 14:44 UTC

Return to Bug #60066 | Download this patch
Patch Revisions:

Developer: fedora@famillecollet.com

diff -up geoip-1.0.7/geoip.c.orig geoip-1.0.7/geoip.c
--- geoip-1.0.7/geoip.c.orig	2011-10-15 16:25:26.612833903 +0200
+++ geoip-1.0.7/geoip.c	2011-10-15 16:26:14.279997257 +0200
@@ -229,7 +229,7 @@ PHP_FUNCTION(geoip_db_get_all_info)
 
 	for (i=0; i < NUM_DB_TYPES; i++)
 	{
-		if (NULL != GeoIPDBDescription[i])
+		if (GeoIPDBDescription[i] && GeoIPDBFileName[i])
 		{
 			zval *row;
 			ALLOC_INIT_ZVAL(row);
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 18 15:01:28 2024 UTC