From: tommythekid at mac dot com
Operating system: Solaris 9 SPARC
PHP version: 5.0.3
PHP Bug Type: iPlanet related
Bug description: no output is sent after calling ob_flush() after sending
headers
Description:
------------
no output is sent after calling ob_flush() after sending headers. This
problem appears to be NSAPI related. Removing the first ob_flush() from
the code produces the expected results.
Reproduce code:
---------------
while (ob_end_clean());
ob_start();
header("X-Foo: BAR");
ob_flush();
flush();
echo "PRE\n\n";
ob_flush();
flush();
echo "POST\n\n";
ob_flush();
flush();
Expected result:
----------------
HTTP/1.1 200 OK
Server: Sun-ONE-Web-Server/6.1
Date: Wed, 23 Mar 2005 09:31:45 GMT
Content-type: text/html
X-powered-by: PHP/5.0.3
X-foo: BAR
Connection: close
PRE
POST
Actual result:
--------------
HTTP/1.1 200 OK
Server: Sun-ONE-Web-Server/6.1
Date: Wed, 23 Mar 2005 09:24:38 GMT
Content-type: text/html
X-powered-by: PHP/5.0.3
X-foo: BAR
Connection: close
--
Edit bug report at http://bugs.php.net/?id=32424&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=32424&r=trysnapshot4
Try a CVS snapshot (php5.0):
http://bugs.php.net/fix.php?id=32424&r=trysnapshot50
Try a CVS snapshot (php5.1):
http://bugs.php.net/fix.php?id=32424&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=32424&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=32424&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=32424&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=32424&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=32424&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=32424&r=support
Expected behavior: http://bugs.php.net/fix.php?id=32424&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=32424&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=32424&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=32424&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=32424&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=32424&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=32424&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=32424&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=32424&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=32424&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=32424&r=mysqlcfg