From: ce at netage dot bg
Operating system: linux
PHP version: 5.2.4RC3
PHP Bug Type: Output Control
Bug description: ob_start php://output and headers
Description:
------------
it is actually a duplicate problem with 40429, but since you have closed
the bug I cannot reopen it, but it is still present with all versions
including the new 5.2.4RC3
when open through a browser, not a cli!
Reproduce code:
---------------
<?php
ob_start();
$fp = fopen('php://output', 'w');
fwrite($fp, 'aaaaaaa');
fclose($fp);
$content = ob_get_clean();
header('Content-type: text/html');
echo $content;
Expected result:
----------------
aaaaaaa
Actual result:
--------------
Warning: Cannot modify header information - headers already sent in
/var/www/test.php on line 13
aaaaaaa
--
Edit bug report at http://bugs.php.net/?id=42473&edit=1
--
Try a CVS snapshot (PHP 4.4):
http://bugs.php.net/fix.php?id=42473&r=trysnapshot44
Try a CVS snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=42473&r=trysnapshot52
Try a CVS snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=42473&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=42473&r=fixedcvs
Fixed in release:
http://bugs.php.net/fix.php?id=42473&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=42473&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=42473&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=42473&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=42473&r=support
Expected behavior: http://bugs.php.net/fix.php?id=42473&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=42473&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=42473&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=42473&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=42473&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=42473&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=42473&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=42473&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=42473&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=42473&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=42473&r=mysqlcfg