From: Xuefer at 21cn dot com Operating system: win PHP version: 4.3.3RC4 PHP Bug Type: Output Control Bug description: calling ob_gzhandler after modified buffer in ob handler, return origin buffer
Description: ------------ only when client do not support compressing save the below sample as: ob_gzhandler.phpt and: make test --TEST-- ob_gzhandler --POST-- --GET-- --FILE-- <?php function test($buffer, $flags) { $buffer = '456'; $buffer = ob_gzhandler($buffer, $flags); return $buffer; } ob_start('test'); echo 123; ?> --EXPECT-- 456 ===================================================================== FAILED TEST SUMMARY --------------------------------------------------------------------- ob_gzhandler [test/ob_handler.phpt] actual output is 123, not 456 -- Edit bug report at http://bugs.php.net/?id=25217&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=25217&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=25217&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=25217&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=25217&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=25217&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=25217&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=25217&r=support Expected behavior: http://bugs.php.net/fix.php?id=25217&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=25217&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=25217&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=25217&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=25217&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=25217&r=dst IIS Stability: http://bugs.php.net/fix.php?id=25217&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=25217&r=gnused