|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2000-07-26 00:31 UTC] zak@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Nov 04 19:00:02 2025 UTC |
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...