#21007 [Com]: html_errors off text-only output in phpinfo
| From: | axel_kollmorgen at hotmail dot com | Date: | Sat, 04 Jan 2003 16:02:10 +0000 |
| Subject: | #21007 [Com]: html_errors off text-only output in phpinfo | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-29050@lists.php.net to get a copy of this message | ||
ID: 21007
Comment by: axel_kollmorgen@hotmail.com
Reported By: holliwell@gmx.net
Status: Open
Bug Type: PHP options/info functions
Operating System: all
PHP Version: 4.3.0
New Comment:
having "html_errors" "off" causing phpinfo() outputting text-only
doesn't make any sense to me, neither. i completely support
philip@php.net: phpinfo() is not an error, so it shouldn't depend on
"html_errors".
Previous Comments:
------------------------------------------------------------------------
[2002-12-29 23:56:01] philip@php.net
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! :)
------------------------------------------------------------------------
[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
------------------------------------------------------------------------
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