From: jpleveille at gameloft dot com
Operating system: Windows XP SP1
PHP version: 5.0.0RC2
PHP Bug Type: Output Control
Bug description: phpinfo() outputs HTML only
Description:
------------
This might sound strange, but I want to display the content of phpinfo()
in plain text in an administrative tool that only developers has access
to, to embed its content without altering my design. The documentation
reads that phpinfo() outputs plain text if html_errors is Off but even if
I set html_errors to Off into php.ini, an .htaccess file or manually with
ini_set(), this doesn't affect the output of phpinfo().
Reproduce code:
---------------
<?php
// backing up old value
$html_errors = ini_get('html_errors');
ini_set('html_errors', 0);
phpinfo();
// restoring preceding html_errors value
ini_set('html_errors', $html_errors);
?>
Expected result:
----------------
Plain text and no HTML.
Actual result:
--------------
HTML, HTML and only HTML.
I checked into PHP 4.3.5 and it does the same too. I also checked using
the PHP CLI and fortunately, the content outputted is in Plain Text (php
-r phpinfo();)
JP.
--
Edit bug report at http://bugs.php.net/?id=28405&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=28405&r=trysnapshot4
Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=28405&r=trysnapshot5
Fixed in CVS: http://bugs.php.net/fix.php?id=28405&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=28405&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=28405&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=28405&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=28405&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=28405&r=support
Expected behavior: http://bugs.php.net/fix.php?id=28405&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=28405&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=28405&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=28405&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=28405&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=28405&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=28405&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=28405&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=28405&r=float