Ask a Question related to PHP Development, Design and Development.
-
Xuefer at 21cn dot com #1
#25217 [NEW]: calling ob_gzhandler after modified buffer in ob handler, return origin buffer
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]
Xuefer at 21cn dot com Guest
-
#39629 [NEW]: Buffer clean in error handler causes PHP crash
From: robert dot tuley at imperial dot ac dot uk Operating system: winXP PHP version: 5.2.0 PHP Bug Type: Output Control Bug... -
#25701 [Ver->Bgs]: Calling flush from within an output buffer prevents headers from being sent
ID: 25701 Updated by: iliaa@php.net Reported By: scottmacvicar at ntlworld dot com -Status: Verified +Status: ... -
#25701 [Ver]: Calling flush from within an output buffer prevents headers from being sent
ID: 25701 Updated by: sniper@php.net Reported By: scottmacvicar at ntlworld dot com Status: Verified Bug Type:... -
#25701 [Com]: Calling flush from within an output buffer prevents headers from being sent
ID: 25701 Comment by: kier at ap3d dot com Reported By: scottmacvicar at ntlworld dot com Status: Verified Bug... -
#25701 [Opn->Ver]: Calling flush from within an output buffer prevents headers from being sent
ID: 25701 Updated by: sniper@php.net Reported By: scottmacvicar at ntlworld dot com -Status: Open +Status: ...



Reply With Quote

