diff -Nru php5-5.5.9+dfsg/debian/changelog php5-5.5.9+dfsg/debian/changelog --- php5-5.5.9+dfsg/debian/changelog 2015-10-27 13:55:35.000000000 -0700 +++ php5-5.5.9+dfsg/debian/changelog 2016-03-22 09:00:50.000000000 -0700 @@ -1,3 +1,9 @@ +php5 (5.5.9+dfsg-1ubuntu4.15) 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.14) trusty-security; urgency=medium * SECURITY UPDATE: null pointer dereference in phar_get_fp_offset() 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 2015-10-27 13:54:37.000000000 -0700 +++ php5-5.5.9+dfsg/debian/patches/series 2016-03-22 08:55:40.000000000 -0700 @@ -107,3 +107,4 @@ CVE-2015-6837-6838.patch CVE-2015-7803.patch CVE-2015-7804.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-03-22 09:00:01.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 */