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

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

[2002-12-14 06:16:29] [EMAIL PROTECTED]

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

Reply via email to