Edit report at https://bugs.php.net/bug.php?id=55840&edit=1
ID: 55840 Updated by: m...@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