You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/dev-php/pecl-geoip/files/1.1.0-public-init.patch

22 lines
624 B

--- a/geoip.c 2014/05/06 12:11:37 333484
+++ b/geoip.c 2014/05/06 12:52:25 333485
@@ -117,7 +117,7 @@
#endif
GeoIP_setup_custom_directory(value);
- _GeoIP_setup_dbfilename();
+ GeoIP_db_avail(GEOIP_COUNTRY_EDITION);
}
/* }}} */
#endif
@@ -168,7 +168,8 @@
#ifdef HAVE_CUSTOM_DIRECTORY
GeoIP_setup_custom_directory(GEOIP_G(custom_directory));
#endif
- _GeoIP_setup_dbfilename();
+ /* This will initialize file structure */
+ GeoIP_db_avail(GEOIP_COUNTRY_EDITION);
/* For database type constants */
REGISTER_LONG_CONSTANT("GEOIP_COUNTRY_EDITION", GEOIP_COUNTRY_EDITION, CONST_CS | CONST_PERSISTENT);