PHP 4.0 Bug #4532: http header is getting duplicated
| From: | zoltan at deep-discount dot com | Date: | Sun, 21 May 2000 21:29:14 +0000 |
| Subject: | PHP 4.0 Bug #4532: http header is getting duplicated | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-19078@lists.php.net to get a copy of this message | ||
From: zoltan@deep-discount.com
Operating system: win32 (in my case Win98)
PHP version: 4.0 Release Candidate 2
PHP Bug Type: Other
Bug description: http header is getting duplicated
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...