diff -Nru php5-5.5.9+dfsg/debian/changelog php5-5.5.9+dfsg/debian/changelog --- php5-5.5.9+dfsg/debian/changelog 2016-04-20 06:53:09.000000000 -0700 +++ php5-5.5.9+dfsg/debian/changelog 2016-04-21 10:50:19.000000000 -0700 @@ -1,3 +1,9 @@ +php5 (5.5.9+dfsg-1ubuntu4.17) trusty; urgency=medium + + * Fix zlib function naming with LFS (LP: #1315888). + + -- Nishanth Aravamudan Tue, 22 Mar 2016 09:00:05 -0700 + php5 (5.5.9+dfsg-1ubuntu4.16) trusty-security; urgency=medium * SECURITY UPDATE: directory traversal in ZipArchive::extractTo diff -Nru php5-5.5.9+dfsg/debian/patches/series php5-5.5.9+dfsg/debian/patches/series --- php5-5.5.9+dfsg/debian/patches/series 2016-04-15 10:29:16.000000000 -0700 +++ php5-5.5.9+dfsg/debian/patches/series 2016-04-21 10:49:40.000000000 -0700 @@ -121,3 +121,4 @@ bug71798.patch bug71860.patch bug71906.patch +zlib-largefile-function-renaming.patch diff -Nru php5-5.5.9+dfsg/debian/patches/zlib-largefile-function-renaming.patch php5-5.5.9+dfsg/debian/patches/zlib-largefile-function-renaming.patch --- php5-5.5.9+dfsg/debian/patches/zlib-largefile-function-renaming.patch 1969-12-31 16:00:00.000000000 -0800 +++ php5-5.5.9+dfsg/debian/patches/zlib-largefile-function-renaming.patch 2016-04-21 10:48:40.000000000 -0700 @@ -0,0 +1,35 @@ +Description: zlib largefile function renaming + 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. +Author: Nishanth Aravamudan + +Origin: Debian, http://anonscm.debian.org/cgit/pkg-php/php.git/tree/debian/patches/0038-zlib-largefile-function-renaming.patch?h=master-5.5 +Bug: https://bugs.php.net/bug.php?id=53829 +Bug-Ubuntu: https://launchpad.net/bugs/1315888 + +--- php5-5.5.9+dfsg.orig/ext/zlib/zlib.c ++++ php5-5.5.9+dfsg/ext/zlib/zlib.c +@@ -34,6 +34,18 @@ + #include "ext/standard/php_string.h" + #include "php_zlib.h" + ++/* ++ * zlib include files can define the following processor 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 archives. ++ * ++ * 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 */