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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Thu Jul 17 01:01:33 2025 UTC