From: zimage at icdsoft dot com
Operating system: Linux
PHP version: 4.4.0
PHP Bug Type: Output Control
Bug description: Output buffering cannot be turned off when runing as FastCGI
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 bug report at http://bugs.php.net/?id=34429&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=34429&r=trysnapshot4
Try a CVS snapshot (php5.0):
http://bugs.php.net/fix.php?id=34429&r=trysnapshot50
Try a CVS snapshot (php5.1):
http://bugs.php.net/fix.php?id=34429&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=34429&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=34429&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=34429&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=34429&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=34429&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=34429&r=support
Expected behavior: http://bugs.php.net/fix.php?id=34429&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=34429&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=34429&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=34429&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=34429&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=34429&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=34429&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=34429&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=34429&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=34429&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=34429&r=mysqlcfg