#34071 [Opn->Bgs]: buffering is destroyed when using ob_gzhandler and ob_clean
| From: | tony2001@php.net | Date: | Wed, 10 Aug 2005 17:21:09 +0000 |
| Subject: | #34071 [Opn->Bgs]: buffering is destroyed when using ob_gzhandler and ob_clean | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-83333@lists.php.net to get a copy of this message | ||
ID: 34071
Updated by: tony2001@php.net
Reported By: dennis at nocertainty dot com
-Status: Open
+Status: Bogus
Bug Type: Output Control
Operating System: Windows XP SP2
PHP Version: 5CVS-2005-08-10 (dev)
New Comment:
Not PHP problem then.
Previous Comments:
------------------------------------------------------------------------
[2005-08-10 19:20:43] rasmus@php.net
That's not a very good test since ob_gzhandler checks the request's
accept-encoding and since your telnet test didn't specify that you
could accept gzip or deflate, then the gzhandler simply didn't do
anything.
------------------------------------------------------------------------
[2005-08-10 19:03:27] dennis at nocertainty dot com
You're right, that works, and I get the correct result.
------------------------------------------------------------------------
[2005-08-10 18:56:29] tony2001@php.net
Are you sure there is nothing shown in the "View Source" tab?
I'm almost sure your browser just hides binary output from you. So try
this:
telnet localhost 80
GET /script.php HTTP/1.0
<Enter>
<Enter>
------------------------------------------------------------------------
[2005-08-10 18:50:14] dennis at nocertainty dot com
Yes, that works. But as soon as I use ob_gzhandler, instead of foo,
nothing is displayed.
I run PHP4 and PHP5 at the same time (port 80 is PHP4.3.4, port 83 is
PHP5Dev). Could it be that the bug is caused by my PHP4 installation?
------------------------------------------------------------------------
[2005-08-10 18:39:16] tony2001@php.net
Still can't reproduce, even with FCGI.
Does this work for you:
<?php
function foo($data) {
return $data;
}
ob_start('foo');
echo 'Should NOT be shown';
ob_clean();
echo 'Should be shown';
?>
?
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/34071
--
Edit this bug report at http://bugs.php.net/?id=34071&edit=1