Re: com php-src: Fixed bug #53829 Compiling PHP with large file support will replace function gzopen by gzopen64: NEWS ext/zlib/zlib.c
| From: | Matteo Beccati | Date: | Wed, 12 Nov 2014 16:28:50 +0000 |
| Subject: | Re: com php-src: Fixed bug #53829 Compiling PHP with large file support will replace function gzopen by gzopen64: NEWS ext/zlib/zlib.c | ||
| References: | 1 2 | Groups: | php.cvs |
| Request: | Send a blank email to php-cvs+get-83061@lists.php.net to get a copy of this message | ||
On 12/11/2014 14:59, Michael Wallner wrote:
> Hey, wouldn't it be better to use PHP_NAMED_* macros instead?
Thanks for raising it. I've had a look: the code that is acually calling
the affected functions appears to be zlib_fopen_wrapper.c, which has no
#undef's
Cheers
> On 12/11/14 11:21, Matteo Beccati wrote:
>> +/*
>> + * 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
--
Matteo Beccati
Development & Consulting - http://www.beccati.com/