#35433 [Opn->Fbk]: phpinfo() function does no send a Content-Type header

From: Date: Sun, 27 Nov 2005 22:26:22 +0000
Subject: #35433 [Opn->Fbk]: phpinfo() function does no send a Content-Type header
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-89130@lists.php.net to get a copy of this message
ID: 35433 Updated by: tony2001@php.net Reported By: cyberdog3k at gmail dot com -Status: Open +Status: Feedback Bug Type: Unknown/Other Function Operating System: Windows Server 2003 PHP Version: 5.1.0 New Comment: Why did you decide it doesn't send it? Did you check it with telnet or something else? From what I can see, the header is there and it's fine: Content-Type: text/html Previous Comments: ------------------------------------------------------------------------ [2005-11-27 23:20:38] cyberdog3k at gmail dot com 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 this bug report at http://bugs.php.net/?id=35433&edit=1

« previous php.bugs (#89130) next »