#19336 [Csd]: phpinfo() returns plain text

From: Date: Tue, 10 Sep 2002 16:21:07 +0000
Subject: #19336 [Csd]: phpinfo() returns plain text
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-18957@lists.php.net to get a copy of this message
 ID:               19336
 User updated by:  mclinden@informed.net
 Reported By:      mclinden@informed.net
 Status:           Closed
 Bug Type:         PHP options/info functions
 Operating System: Linux 2.4.20-pre5
 PHP Version:      4CVS-2002-09-10
 New Comment:

I'm not complaining about the CVS. My beef was with the response that,
first, this is bogus when, in fact, it isn't documented behavior and,
second, "read the manual" when it isn't in the manual.

To me it seems reasonable to believe that an undocumented change in
behavior in the CVS could be a "bug". A simple response to this would
have been the SECOND paragraph of Derick's posting (the first,
suggesting that this behavior is in the manual is, itself, bogus).

So, a lot of silly bandwidth has been wasted when a two sentence
response would have sufficed. Thanks.


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

[2002-09-10 11:02:43] rasmus@php.net

Of course it hasn't, you are using a CVS version from today.  If you
were using a released version you might have a case for complaining,
but you aren't.

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

[2002-09-10 10:56:30] mclinden@informed.net

Unfortunately,  this (html_errors) default setting of "On" is described
in ini_set() but not in the documentation for the configuration file.
Moreover, the TWO distributed php.ini- files both have html_errors =
Off commented out. One implication is that uncommenting this would
CHANGE the behavior however, I have also seen this format used to
indicate defaults. 

But I guess my point is that the phpinfo() documentation has not been
changed to reflect the behavior when used as an Apache 2 module. In
particular, the function documentation does not indicate that the
behavior of the function is modified by the value for html_errors in
the php.ini file.

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

[2002-09-10 10:45:56] rasmus@php.net

There is no behavioural change for standard installs.  The default
setting for html_errors is on, so only people who specifically changed
their php.ini file to turn off html tags around their error messages
will have html tags stripped from their phpinfo() output as well.

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

[2002-09-10 10:43:24] mclinden@informed.net

I have checked the manual. I see no place where this change in behavior
of phpinfo() is documented, except in the NEWS section of the source
code where the implication is that it was changed for the CLI but not
the Apache module version.

I am happy to be corrected but considering that the large amount of
preprinted PHP installation guides refers to this use of phpinfo() to
test an installation, this is not exactly a subtle behavior change.

Regards.

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

[2002-09-10 10:27:42] derick@php.net

Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to
report
a bug at http://bugs.php.net/how-to-report.php

Turn on html_errors in php.ini. This was recently changed to allow the
CLI and CGI modules to have a pretty phpinfo() too.

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/19336

-- 
Edit this bug report at http://bugs.php.net/?id=19336&edit=1



Thread (12 messages)

« previous php.bugs (#18957) next »