ID:               28405
 Updated by:       [EMAIL PROTECTED]
 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] [EMAIL PROTECTED]

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

Reply via email to