Bug #62627 [Opn->Fbk]: Zlib output handler enabled randomly

From: Date: Wed, 25 Jul 2012 10:34:04 +0000
Subject: Bug #62627 [Opn->Fbk]: Zlib output handler enabled randomly
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-172225@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=62627&edit=1 ID: 62627 Updated by: laruence@php.net Reported by: roctom at gmail dot com Summary: Zlib output handler enabled randomly -Status: Open +Status: Feedback Type: Bug Package: *Compression related Operating System: Debian 2.6.32-5-xen-amd64 PHP Version: 5.4.5 Block user comment: N Private report: N New Comment: Please try using this snapshot: http://snaps.php.net/php-trunk-latest.tar.gz For Windows: http://windows.php.net/snapshots/ a bug #55544 has been fixed recently, please try with the snapshot Previous Comments: ------------------------------------------------------------------------ [2012-07-25 08:42:59] indeyets@php.net experienced the same on 5.4.4, CentOS/6.3 ------------------------------------------------------------------------ [2012-07-21 05:08:48] roctom at gmail dot com 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 this bug report at https://bugs.php.net/bug.php?id=62627&edit=1

« previous php.bugs (#172225) next »