#28405 [Opn->Csd]: phpinfo() outputs HTML only

From: Date: Fri, 21 May 2004 13:40:02 +0000
Subject: #28405 [Opn->Csd]: phpinfo() outputs HTML only
References: 1  Groups: php.doc 
Request: Send a blank email to phpdoc+get-969360758@lists.php.net to get a copy of this message
ID: 28405 Updated by: nlopess@php.net Reported By: jpleveille at gameloft dot com -Status: Open +Status: Closed Bug Type: Documentation problem Operating System: Windows XP SP1 PHP Version: 5.0.0RC2 New Comment: This bug has been fixed in the documentation's XML sources. Since the online and downloadable versions of the documentation need some time to get updated, we would like to ask you to be a bit patient. Thank you for the report, and for helping us make our documentation better. Previous Comments: ------------------------------------------------------------------------ [2004-05-15 17:31:05] derick@php.net The documentation is wrong then as phpinfo() will only output plain text when you use it through the CLI. ------------------------------------------------------------------------ [2004-05-14 21:45:16] jpleveille at gameloft dot com 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 this bug report at http://bugs.php.net/?id=28405&edit=1

« previous php.doc (#969360758) next »