summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-php/pecl-geoip/files/1.1.0-public-init.patch')
-rw-r--r--dev-php/pecl-geoip/files/1.1.0-public-init.patch21
1 files changed, 21 insertions, 0 deletions
diff --git a/dev-php/pecl-geoip/files/1.1.0-public-init.patch b/dev-php/pecl-geoip/files/1.1.0-public-init.patch
new file mode 100644
index 000000000000..36c5fa6e33fe
--- /dev/null
+++ b/dev-php/pecl-geoip/files/1.1.0-public-init.patch
@@ -0,0 +1,21 @@
+--- 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);