ID:               21007
 Comment by:       [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
 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
[EMAIL PROTECTED]: phpinfo() is not an error, so it shouldn't depend on
"html_errors".


Previous Comments:
------------------------------------------------------------------------

[2002-12-29 23:56:01] [EMAIL PROTECTED]

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] [EMAIL PROTECTED]

Where?  Put the information in this bug report.

------------------------------------------------------------------------

[2002-12-14 13:39:31] [EMAIL PROTECTED]

I've submitted a note to document this behavior in the PHP Manual.

------------------------------------------------------------------------

[2002-12-14 06:31:19] [EMAIL PROTECTED]

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] [EMAIL PROTECTED]

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

Reply via email to