components/php-5_3/php-sapi/patches/180_php_zlib.patch
changeset 3727 425608dcd0e3
parent 1984 00f4f2142725
equal deleted inserted replaced
3726:1c80a90dd005 3727:425608dcd0e3
       
     1 Patch origin: upstream
       
     2 Patch status: unclear; patch attached to bug
       
     3 
       
     4 https://bugs.php.net/bug.php?id=53829
       
     5 
       
     6 --- php-5.3.17/ext/zlib/zlib.c
       
     7 +++ php-5.3.17/ext/zlib/zlib.c
       
     8 @@ -58,6 +58,18 @@
       
     9  # endif
       
    10  #endif
       
    11  
       
    12 +/*
       
    13 + * zlib include files can define the following preprocessor defines which rename
       
    14 + * the corresponding PHP functions to gzopen64, gzseek64 and gztell64 and thereby
       
    15 + * breaking some software, most notably PEAR's Archive_Tar, which halts execution
       
    16 + * without error message on gzip compressed archivesa.
       
    17 + *
       
    18 + * This only seems to happen on 32bit systems with large file support.
       
    19 + */
       
    20 +#undef gzopen
       
    21 +#undef gzseek
       
    22 +#undef gztell
       
    23 +
       
    24  #if defined(HAVE_UNISTD_H) && defined(PHP_WIN32)
       
    25  # undef HAVE_UNISTD_H
       
    26  #endif