Edit report at http://bugs.php.net/bug.php?id=53829&edit=1
ID: 53829 Comment by: j dot henge-ernst at interexa dot de Reported by: rilatonal at hotmail dot de Summary: Compiling PHP with large file support will replace function gzopen by gzopen64 Status: Open Type: Bug Package: Zlib related Operating System: Linux PHP Version: 5.3.5 Block user comment: N Private report: N New Comment: I also encountered that problem compiling php on solaris x86_64 with zlib 1.2.5. I used the following configure commmand: #! /bin/sh # # Created by configure CFLAGS='-xmodel=small -m64 -Kpic -O4' \ CXXFLAGS='-xmodel=small -m64 -Kpic -O4' \ LDFLAGS='-m64' \ CC='cc' \ './configure' \ '--prefix=/opt/IXAGib64' \ '--with-config-file-path=/opt/IXAGib64/etc' \ '--with-config-file-scan-dir=/opt/IXAGib64/etc/php.ini.d' \ '--disable-debug' \ '--enable-inline-optimization' \ '--disable-all' \ '--enable-ctype' \ '--enable-dom' \ '--enable-libxml' \ '--with-libxml-dir=/opt/IXAGib64' \ '--with-openssl=/opt/IXAGib64' \ '--with-pcre-regex' \ '--enable-session' \ '--enable-simplexml' \ '--enable-wddx' \ '--enable-xml' \ '--enable-hash' \ '--enable-json' \ '--enable-filter' \ '--with-zlib=/opt/IXAGib64' \ '--with-apxs2=/opt/IXAGib64/bin/apxs' \ '--with-pear' \ '--with-layout=GNU' \ "$@" Previous Comments: ------------------------------------------------------------------------ [2011-01-24 14:40:13] rilatonal at hotmail dot de 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 this bug report at http://bugs.php.net/bug.php?id=53829&edit=1