php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #8327 Son of Defect 4155: X-Powered-By and Content-Type bogus headers resurfacing
Submitted: 2000-12-19 21:52 UTC Modified: 2001-03-09 20:44 UTC
From: jeffd at revx dot net Assigned:
Status: Closed Package: Installation problem
PHP Version: 4.0.3pl1 OS: Windows 2000
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: jeffd at revx dot net
New email:
PHP Version: OS:

 

 [2000-12-19 21:52 UTC] jeffd at revx dot net
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>

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-01-04 13:37 UTC] sniper@php.net
Have you tried PHP 4.0.4 ? Does this happen with it?

--Jani
 [2001-03-09 20:44 UTC] sniper@php.net
No feedback, not enough info, closed.

--Jani
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Apr 27 16:01:29 2024 UTC