PHP 4.0 Bug #8327: Son of Defect 4155: X-Powered-By and Content-Type bogus headers resurfacing
| From: | jeffd at revx dot net | Date: | Wed, 20 Dec 2000 02:52:27 +0000 |
| Subject: | PHP 4.0 Bug #8327: Son of Defect 4155: X-Powered-By and Content-Type bogus headers resurfacing | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-41888@lists.php.net to get a copy of this message | ||
From: jeffd@revx.net
Operating system: Windows 2000
PHP version: 4.0.3pl1
PHP Bug Type: *Install and Config
Bug description: Son of Defect 4155: X-Powered-By and Content-Type bogus headers resurfacing
Win2K/Apache 1.3.14/PHP 4.0.1pl1/MySQL 3.23.28-gamma
Problem: The Content-Type and (optional) X-Powered-By headers are preceded by a blank line, causing
the browser to believe them part of the document rather than headers. This appears to be tied to
the old bug where this behavior was tied to whether the MySQL module was being loaded; now that
MySQL support is compiled in by default (at least on the Win32 binaries), the defect is always
exercised.
Examle input source:
<HTML>
<HEAD><TITLE>Testing</TITLE>
</HEAD>
<BODY>
<?php
printf( "\n<B>Testing!</B>\n<BR>" );
phpinfo();
?>
</BODY>
</HTML>
Output for example:
Content-type: text/html
<HTML>
<HEAD><TITLE>Testing</TITLE>
</HEAD>
<BODY>
<B>Testing!</B>
<BR><!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2//EN">
<html>
<!-- remainder snipped - phpinfo() works just fine -->
</html>
--
Edit Bug report at: http://bugs.php.net/?id=8327&edit=1