ID:               25217
 Updated by:       [EMAIL PROTECTED]
 Reported By:      Xuefer at 21cn dot com
-Status:           Open
+Status:           Bogus
 Bug Type:         Output Control
 Operating System: win
 PHP Version:      4.3.3RC4
 New Comment:

RTFM: "ob_gzhandler() is intended to be used as a callback function for
ob_start()"



Previous Comments:
------------------------------------------------------------------------

[2003-08-23 04:13:47] Xuefer at 21cn dot com

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 this bug report at http://bugs.php.net/?id=25217&edit=1

Reply via email to