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

From: Date: Tue, 10 Sep 2002 15:56:30 +0000
Subject: #19336 [Csd]: phpinfo() returns plain text
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-18951@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: 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. Previous Comments: ------------------------------------------------------------------------ [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 ------------------------------------------------------------------------ [2002-09-10 10:26:42] mclinden@informed.net Here. Hope this helps. System => Linux www 2.4.18 #1 Thu Jun 13 15:04:26 EDT 2002 i686 Build Date => Sep 10 2002 10:37:38 Configure Command => './configure' '--prefix=/usr' '--enable-dba=shared' '--with-mm' '--enable-dbg=shared' '--enable-dbg-profiler' '--enable-force-cgi-redirect' '--enable-magic-quotes' '--enable-calendar' '--enable-cli' '--enable-bcmath' '--enable-dba' '--enable-dio' '--enable-ftp' '--enable-libgcc' '--enable-mailparse' '--enable-mbstring' '--enable-sockets' '--enable-wddx' '--enable-trans-sid' '--enable-xml' '--enable-dbx' '--enable-exif' '--enable-track-vars' '--enable-sigchild' '--enable-static' '--enable-shared' '--with-mysql=/usr' '--enable-sysvsem' '--enable-sysvshm' '--enable-ftp' '--enable-sockets' '--enable-inline-optimization' '--with-openssl=/usr/local/ssl' '--with-fdftk=/usr' '--with-ldap' '--with-ming' '--with-mcal=../../libmcal' '--with-gettext' '--with-xml' '--with-imagick' '--with-yaz' '--with-pear' '--with-zlib' '--with-dom' '--with-bz2' '--with-gdbm' '--with-gmp' '--with-curl' '--with-t1lib' '--with-msession=/usr/src/otai/phoenix' '--with-ldap' '--with-regex=php' '--with-mhash' '--with-iconv=/usr/lib' '--with-java=/opt/j2sdk1.4.0_01' '--with-oci8=/usr/oracle/OraHome1' '--with-oracle=/usr/oracle/OraHome1' '--with-xmlrpc' '--with-pdflib=/usr' '--with-apxs2=/usr/apache/bin/apxs' Server API => Apache 2.0 Filter Virtual Directory Support => disabled Configuration File (php.ini) Path => /usr/lib/php.ini API Versions: => PHP: 20020307 PHP Extension: 20020429 Zend Extension: 20020903 Debug Build => no Thread Safety => disabled Registered PHP Streams => php, http, ftp, https, ftps, compress.bzip2, compress.zlib ------------------------------------------------------------------------ [2002-09-10 10:23:42] rasmus@php.net It was labelled bogus because of the assumption that you are incorrectly using the CLI version of PHP where this is now default. As was stated, if you are indeed using the Apache module version or the CGI version, you could re-open. You didn't specify this when you re-opened, just that you were using Apache. Look at the output and tell us what it says next to "Server API". ------------------------------------------------------------------------ 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

« previous php.bugs (#18951) next »