#34429 [Opn->Fbk]: Output buffering cannot be turned off when runing as FastCGI
| From: | sniper@php.net | Date: | Thu, 08 Sep 2005 15:30:24 +0000 |
| Subject: | #34429 [Opn->Fbk]: Output buffering cannot be turned off when runing as FastCGI | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-84746@lists.php.net to get a copy of this message | ||
ID: 34429
Updated by: sniper@php.net
Reported By: zimage at icdsoft dot com
-Status: Open
+Status: Feedback
Bug Type: Output Control
Operating System: Linux
PHP Version: 4.4.0
New Comment:
Please try using this CVS snapshot:
http://snaps.php.net/php5-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php5-win32-latest.zip
Previous Comments:
------------------------------------------------------------------------
[2005-09-08 16:12:16] zimage at icdsoft dot com
Description:
------------
Output comes in chunks of about 8k and cannot be forced by using
flush(), ob_flush() or output_buffering = Off
I've tested with netcat to avoid browser buffering issues:
echo -ne 'GET /buf.php HTTP/1.0\n\n' |nc 10.0.0.1 80
Reproduce code:
---------------
<?php
for ($i=0; $i<4; $i++){
echo "$i\n";
ob_flush();
flush();
sleep (1);
}
?>
Expected result:
----------------
When run under mod_php, cgi version or lighttpd+php/fastcgi there is
one digit printed per second.
Actual result:
--------------
When run under apache 1.3.33 + php/fastcgi the entire output is printed
at once.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=34429&edit=1