From: cyberdog3k at gmail dot com Operating system: Windows Server 2003 PHP version: 5.1.0 PHP Bug Type: Unknown/Other Function Bug description: phpinfo() function does no send a Content-Type header
Description: ------------ The phpinfo() function does not return a Content-Type header. I found in ext/standard/info.c that the <meta http-equiv=\"Content-Type\" content=\"text/html; charset=%s\" /> line is commented out, but there does not seem to be an explanation in the comments for why this is the case. I've verified that no Content-Type header is ever inserted on its way to the client. This poses a problem when validating the results, and would seem to be poor practice even if it's not entirely necessary to have the tag in there. Reproduce code: --------------- <?php phpinfo(); ?> -- Edit bug report at http://bugs.php.net/?id=35433&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=35433&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=35433&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=35433&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=35433&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=35433&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=35433&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=35433&r=needscript Try newer version: http://bugs.php.net/fix.php?id=35433&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=35433&r=support Expected behavior: http://bugs.php.net/fix.php?id=35433&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=35433&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=35433&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=35433&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=35433&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=35433&r=dst IIS Stability: http://bugs.php.net/fix.php?id=35433&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=35433&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=35433&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=35433&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=35433&r=mysqlcfg