#42473 [Fbk->Opn]: ob_start php://output and headers
| From: | ce at netage dot bg | Date: | Thu, 30 Aug 2007 13:39:20 +0000 |
| Subject: | #42473 [Fbk->Opn]: ob_start php://output and headers | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-116889@lists.php.net to get a copy of this message | ||
ID: 42473
User updated by: ce at netage dot bg
Reported By: ce at netage dot bg
-Status: Feedback
+Status: Open
Bug Type: Output Control
Operating System: Irrelevant
PHP Version: 5.2.4RC3
New Comment:
I just compile the latest version 5.2.4RC3
./configure --with-apxs2=/usr/bin/apxs2 --prefix=/usr/local/php-5.2.4
no php.ini, so everything is default
but I have discovered that if using CGI server api it is not
reproducable
this is from phpinfo()
I can give some other info for my configuration if needed
Build Date Aug 30 2007 15:09:33
Configure Command './configure' '--with-apxs2=/usr/bin/apxs2'
'--prefix=/usr/local/php-5.2.4'
Server API Apache 2.0 Handler
Virtual Directory Support disabled
Configuration File (php.ini) Path /usr/local/php-5.2.4/lib
Loaded Configuration File (none)
PHP API 20041225
PHP Extension 20060613
Zend Extension 220060519
Debug Build no
Previous Comments:
------------------------------------------------------------------------
[2007-08-30 13:14:29] jani@php.net
It's not enough to just say "I reproduced" when someone else can't.
Provide some information how to reproduce this..
------------------------------------------------------------------------
[2007-08-30 12:52:05] kouber@php.net
I'm reproducing the bug on Windows XP, PHP 5.2.3, Apache 2.0.54.
------------------------------------------------------------------------
[2007-08-30 11:32:59] jani@php.net
I don't know what your php.ini settings are but I can't even reproduce
it..
------------------------------------------------------------------------
[2007-08-30 09:54:51] ce at netage dot bg
from the documentation:
php://output allows you to write to the output buffer mechanism in the
same way as print() and echo().
(taken from http://www.php.net/manual/en/wrappers.php.php)
so from the written the following code
<?php
ob_start();
echo 'aaaaaaa';
$content = ob_get_clean();
header('Content-type: text/html');
echo $content;
______________
should be equivalent to the problematic code, but it it not! this code
with echo does not yeld the warning
either fix the documentation, either the bug
------------------------------------------------------------------------
[2007-08-30 09:13:40] jani@php.net
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to
report
a bug at http://bugs.php.net/how-to-report.php
From manual:
"ob_get_clean() essentially executes both ob_get_contents() and
ob_end_clean()."
------------------------------------------------------------------------
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/42473
--
Edit this bug report at http://bugs.php.net/?id=42473&edit=1