From: Operating system: Linux PHP version: 5.3.5 Package: Zlib related Bug Type: Bug Bug description:Compiling PHP with large file support will replace function gzopen by gzopen64
Description: ------------ I am in the need of supporting large files in PHP. For the first time I tried to compile PHP on a machine with zlib 1.2.5 installed. After that, gzopen (and the other gz.. functions) is gone and is being replaced by gzopen64 (or the other gz...64-functions). Thats a big problem, because many PEAR-scripts (and other scripts, too) expect gzopen to be there! ZLIB is there (see the test scripts), but gzopen not! Test script: --------------- CFLAGS="-g -O3 -m32 -D_FILE_OFFSET_BITS=64" ./configure --prefix=/tmp/php --with-config-file-path=/tmp/php/etc --disable-all -with-zlib make make install /tmp/php/bin/php -r 'var_dump(function_exists("gzopen"));' /tmp/php/bin/php -r 'var_dump(function_exists("gzopen64"));' /tmp/php/bin/php -r '$fp = fopen("compress.zlib://hello-world.txt.gz", "wb"); fwrite($fp, "Hello World!\n"); fclose($fp);' zcat hello-world.txt.gz Expected result: ---------------- I expect gzopen to be there! Actual result: -------------- gzopen is being replaced by gzopen64! -- Edit bug report at http://bugs.php.net/bug.php?id=53829&edit=1 -- Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=53829&r=trysnapshot52 Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=53829&r=trysnapshot53 Try a snapshot (trunk): http://bugs.php.net/fix.php?id=53829&r=trysnapshottrunk Fixed in SVN: http://bugs.php.net/fix.php?id=53829&r=fixed Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=53829&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=53829&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=53829&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=53829&r=needscript Try newer version: http://bugs.php.net/fix.php?id=53829&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=53829&r=support Expected behavior: http://bugs.php.net/fix.php?id=53829&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=53829&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=53829&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=53829&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=53829&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=53829&r=dst IIS Stability: http://bugs.php.net/fix.php?id=53829&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=53829&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=53829&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=53829&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=53829&r=mysqlcfg