#21007 [Opn]: html_errors off text-only output in phpinfo
| From: | philip@php.net | Date: | Mon, 30 Dec 2002 05:56:02 +0000 |
| Subject: | #21007 [Opn]: html_errors off text-only output in phpinfo | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-28718@lists.php.net to get a copy of this message | ||
ID: 21007
Updated by: philip@php.net
Reported By: holliwell@gmx.net
Status: Open
-Bug Type: Documentation problem
+Bug Type: PHP options/info functions
Operating System: all
-PHP Version: 4.3.0RC3
+PHP Version: 4.3.0
New Comment:
Please explain why this is intended behavior, it does not make sense to
me. html_errors is for html_errors, it's documented as such in
php.ini:
; Disable the inclusion of HTML tags in error messages.
;html_errors = Off
This says nothing about phpinfo() and IMHO it shouldn't affect it at
all. The patch that resulted in this change is here:
* add phpinfo() support for CLI.
http://cvs.php.net/diff.php/php4/ext/standard/info.c?r1=1.193&r2=1.194
Why is html_errors being used in this way? When html_errors = off,
errors remain readable when viewing in a browser but this textual
version of phpinfo() == complete fubar in the browser (yes, one can use
<pre>). One might turn html_errors off, for example, to use
error_prepend_string/error_append_string in some way. Or they just
don't want html in the errors... I don't see how this has anything to
do with phpinfo() output. Why doesn't that patch instead check if sapi
= cli?
A person shouldn't be forced to have this textual phpinfo() if they
decide to not include html in php generated errors. Please explain.
phpinfo() is not an error! :)
Previous Comments:
------------------------------------------------------------------------
[2002-12-14 15:17:42] philip@php.net
Where? Put the information in this bug report.
------------------------------------------------------------------------
[2002-12-14 13:39:31] davidbulock@tech-center.com
I've submitted a note to document this behavior in the PHP Manual.
------------------------------------------------------------------------
[2002-12-14 06:31:19] holliwell@gmx.net
If this is intended behaviour, this seems to be a doc problem, since I
can't find anything about in the docs.
Regards
Friedhelm Betz
------------------------------------------------------------------------
[2002-12-14 06:19:32] derick@php.net
It's indeed intended like this (and I already forgave your typo :).
Derick
------------------------------------------------------------------------
[2002-12-14 06:16:29] holliwell@gmx.net
Sorry a misleading typo, but the script should be:
<?php
ini_set("html_errors","off");
phpinfo();
?>
or php.ini html_errors=off
Is it intended behaviour with this settings that phpinfo() produces
text-only output no html-formated output?
Sorry if my first post wasn't clear enough.
BTW, I wasn'able to find anything in the docs, that setting html_errors
off causes phpinfo() to display text-only output.
Regards
Friedhelm Betz
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/21007
--
Edit this bug report at http://bugs.php.net/?id=21007&edit=1