From: roctom at gmail dot com Operating system: Debian 2.6.32-5-xen-amd64 PHP version: 5.4.5 Package: *Compression related Bug Type: Bug Bug description:Zlib output handler enabled randomly
Description: ------------ Having upgraded from 5.4.0 to 5.4.5, I now get the zlib output compression handler as part of ob_list_handlers() randomly which generates issues with ob_start(). zlib.output_compression is set to off. './configure' '--sysconfdir=/etc' '--with-config-file-path=/etc' '--with-config- file-scan-dir=/etc/php.d' '--with-apxs2=/usr/sbin/apxs' '--with-openssl' '--with- gd' '--with-curl=/usr/src/curl-7.21.7/include' '--with-zlib' '--enable-calendar' '--enable-mbstring' '--enable-zip' '--enable-sockets' '--with-mcrypt' '--with- mysql=mysqlnd' '--with-mysqli=mysqlnd' '--with-pdo-mysql=mysqlnd' '--with- kerberos' '--enable-ftp' '--disable-posix' '--enable-bcmath' '--enable-gd-native- ttf' '--with-freetype-dir' '--with-jpeg-dir=/usr/local' '--with-png- dir=/usr/local' '--with-xsl=/usr/local/lib' '--enable-exif' Test script: --------------- <?php //using output_buffering=On print_r(ob_list_handlers()); ob_end_flush(); ob_start("ob_gzhandler"); print_r(ob_list_handlers()); ob_end_flush(); // anonymous functions ob_start(create_function('$string', 'return $string;')); print_r(ob_list_handlers()); ob_end_flush(); Expected result: ---------------- Array ( [0] => default output handler ) Array ( [0] => ob_gzhandler ) Array ( [0] => default output handler ) Actual result: -------------- First execution (in browser) Array ( [0] => default output handler ) Array ( [0] => ob_gzhandler ) Array ( [0] => ) Second execution (in browser) Firefox 16.1a Array ( [0] => default output handler [1] => zlib output compression ) Chrome 2.0.1132.57 Array ( [0] => default output handler [1] => zlib output compression ) â¹s,*JŠÃà RâhÆX[;â¦âôÃÃÅâ¦Ã¼ÃââÃâ¦ÅüâÅÃ"Ë C°Šü¤øô*˸&HùÃà DArray ( [0] => default output handler [1] => ) -- Edit bug report at https://bugs.php.net/bug.php?id=62627&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=62627&r=trysnapshot54 Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=62627&r=trysnapshot53 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=62627&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=62627&r=fixed Fixed in SVN and need be documented: https://bugs.php.net/fix.php?id=62627&r=needdocs Fixed in release: https://bugs.php.net/fix.php?id=62627&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=62627&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=62627&r=needscript Try newer version: https://bugs.php.net/fix.php?id=62627&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=62627&r=support Expected behavior: https://bugs.php.net/fix.php?id=62627&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=62627&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=62627&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=62627&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=62627&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=62627&r=dst IIS Stability: https://bugs.php.net/fix.php?id=62627&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=62627&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=62627&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=62627&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=62627&r=mysqlcfg