]> granicus.if.org Git - php/commitdiff
Fixed bug #53829 Compiling PHP with large file support will replace function gzopen...
authorMatteo Beccati <mbeccati@php.net>
Wed, 12 Nov 2014 10:21:11 +0000 (11:21 +0100)
committerMatteo Beccati <mbeccati@php.net>
Wed, 12 Nov 2014 10:21:11 +0000 (11:21 +0100)
NEWS
ext/zlib/zlib.c

diff --git a/NEWS b/NEWS
index 6c5cbe9cdf52f079d78c409f5403bf3a79094230..fa1ec8a3abde08c291e63a4523d46af7eb867517 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -5,6 +5,10 @@ PHP                                                                        NEWS
 - Core:
   . Fixed bug #68370 ("unset($this)" can make the program crash). (Laruence)
 
+- zlib:
+  . Fixed bug #53829 (Compiling PHP with large file support will replace
+    function gzopen by gzopen64) (Sascha Kettler, Matteo)
+
 13 Nov 2014, PHP 5.5.19
 
 - Core:
index 705fb5dd5f6d95b9ced2619417cc10603672fed1..25804597bcbfa9381e7a941bfd51e8a17ce9c926 100644 (file)
 #include "ext/standard/php_string.h"
 #include "php_zlib.h"
 
+/*
+ * zlib include files can define the following preprocessor defines which rename
+ * the corresponding PHP functions to gzopen64, gzseek64 and gztell64 and thereby
+ * breaking some software, most notably PEAR's Archive_Tar, which halts execution
+ * without error message on gzip compressed archivesa.
+ *
+ * This only seems to happen on 32bit systems with large file support.
+ */
+#undef gzopen
+#undef gzseek
+#undef gztell
+
 ZEND_DECLARE_MODULE_GLOBALS(zlib);
 
 /* {{{ Memory management wrappers */