#34071 [Fbk->Opn]: buffering is destroyed when using ob_gzhandler and ob_clean
| From: | dennis at nocertainty dot com | Date: | Wed, 10 Aug 2005 16:19:54 +0000 |
| Subject: | #34071 [Fbk->Opn]: buffering is destroyed when using ob_gzhandler and ob_clean | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-83323@lists.php.net to get a copy of this message | ||
ID: 34071
User updated by: dennis at nocertainty dot com
Reported By: dennis at nocertainty dot com
-Status: Feedback
+Status: Open
Bug Type: Output Control
Operating System: Windows XP SP2
PHP Version: 5CVS-2005-08-10 (dev)
New Comment:
It works with PHP CLI.
SAPI: cgi-fcgi
Previous Comments:
------------------------------------------------------------------------
[2005-08-10 18:14:58] tony2001@php.net
Can't reproduce.
Please try with PHP CLI and tell what SAPI you're using.
------------------------------------------------------------------------
[2005-08-10 18:08:20] dennis at nocertainty dot com
Description:
------------
When using ob_start('ob_gzhandler') and ob_clean() the output buffer is
destroyed, and no ob_* function works anymore. It seems that PHP4 had
this problem as well (http://bugs.php.net/bug.php?id=29125)
Reproduce code:
---------------
<?php
ob_start('ob_gzhandler');
echo 'Should NOT be shown';
ob_clean();
echo 'Should be shown';
?>
Expected result:
----------------
"Should be shown" should've been printed, instead nothing is returned,
and nothing displays anymore.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=34071&edit=1