Bug #55840 [Opn->Bgs]: phpinfo() outputs differently if output_buffer is used
| From: | mike@php.net | Date: | Thu, 20 Oct 2011 08:21:50 +0000 |
| Subject: | Bug #55840 [Opn->Bgs]: phpinfo() outputs differently if output_buffer is used | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-164464@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=55840&edit=1
ID: 55840
Updated by: mike@php.net
Reported by: jamess at sharklasers dot com
Summary: phpinfo() outputs differently if output_buffer is
used
-Status: Open
+Status: Bogus
Type: Bug
Package: PHP options/info functions
Operating System: WinXP SP3
PHP Version: 5.3.8
Block user comment: N
Private report: N
New Comment:
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
Your browser sends Cache-Control if you reload the page.
Previous Comments:
------------------------------------------------------------------------
[2011-10-03 19:33:12] jamess at sharklasers dot com
Description:
------------
phpinfo() outputs differently than if its contents are being captured with output buffer.
Test script:
---------------
Actual result:
*Example1:
<?php
ob_start();
phpinfo();
ob_end_flush();
?>
*Example2:
ob_start();
phpinfo();
$i=ob_get_clean();
echo $i;
?>
Expected Result:
*Example 1:
<?php
phpinfo();
?>
*Example 2:
<?php
ob_start();
ob_end_flush();
phpinfo();
?>
Expected result:
----------------
* Apache Environment: HTTP_CACHE_CONTROL is not present.
* HTTP Headers Information: HTTP Request Headers: Cache-Control is not present.
* HTTP Headers Information: HTTP Response Headers: Keep-Alive, Connection, Transfer-Encoding,
Content-Type are present.
Actual result:
--------------
* Apache Environment: HTTP_CACHE_CONTROL is present.
* HTTP Headers Information: HTTP Request Headers: Cache-Control is present.
* HTTP Headers Information: HTTP Response Headers: Keep-Alive, Connection, Transfer-Encoding,
Content-Type are not present.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=55840&edit=1