php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #4532 http header is getting duplicated
Submitted: 2000-05-21 17:29 UTC Modified: 2000-07-26 00:31 UTC
From: zoltan at deep-discount dot com Assigned:
Status: Closed Package: Other
PHP Version: 4.0 Release Candidate 2 OS: win32 (in my case Win98)
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: zoltan at deep-discount dot com
New email:
PHP Version: OS:

 

 [2000-05-21 17:29 UTC] zoltan at deep-discount dot com
This is the same bug as reported in #3469. Here I provide more details.

The http header is getting duplicated in PHP4 RC2 (win32).
It's working fine in PHP3.

This is NOT an Apache bug, it's a PHP4 bug for sure. I tracked it down
by running PHP.EXE from the command line and checking the output.

This is my source:

<?
	header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
	header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
	header("Cache-Control: no-cache, must-revalidate");
	header("Pragma: no-cache");
?>
<html>
<head>
...

And this is the PHP4 output:

Content-type: text/html

Expires: Mon, 26 Jul 1997 05:00:00 GMT
Last-Modified: Sun, 21 May 2000 20:36:10 GMT
Cache-Control: no-cache, must-revalidate
Pragma: no-cache
Content-type: text/html

<html>
<head>
...

Notice the duplicate "Content-type: text/html" lines in the output...

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-07-26 00:31 UTC] zak@php.net
Please try a recent release of PHP.  I believe that this bug has been fixed.  If you encounter the same problem, please submit a new bug report.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Apr 28 20:01:29 2024 UTC