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 [url]http://bugs.php.net/?id=25217&edit=1[/url]
--
Try a CVS snapshot (php4): [url]http://bugs.php.net/fix.php?id=25217&r=trysnapshot4[/url]
Try a CVS snapshot (php5): [url]http://bugs.php.net/fix.php?id=25217&r=trysnapshot5[/url]
Fixed in CVS: [url]http://bugs.php.net/fix.php?id=25217&r=fixedcvs[/url]
Fixed in release: [url]http://bugs.php.net/fix.php?id=25217&r=alreadyfixed[/url]
Need backtrace: [url]http://bugs.php.net/fix.php?id=25217&r=needtrace[/url]
Try newer version: [url]http://bugs.php.net/fix.php?id=25217&r=oldversion[/url]
Not developer issue: [url]http://bugs.php.net/fix.php?id=25217&r=support[/url]
Expected behavior: [url]http://bugs.php.net/fix.php?id=25217&r=notwrong[/url]
Not enough info: [url]http://bugs.php.net/fix.php?id=25217&r=notenoughinfo[/url]
Submitted twice: [url]http://bugs.php.net/fix.php?id=25217&r=submittedtwice[/url]
register_globals: [url]http://bugs.php.net/fix.php?id=25217&r=globals[/url]
PHP 3 support discontinued: [url]http://bugs.php.net/fix.php?id=25217&r=php3[/url]
Daylight Savings: [url]http://bugs.php.net/fix.php?id=25217&r=dst[/url]
IIS Stability: [url]http://bugs.php.net/fix.php?id=25217&r=isapi[/url]
Install GNU Sed: [url]http://bugs.php.net/fix.php?id=25217&r=gnused[/url]