#30510 [Opn->Bgs]: header('HTTP/1.0 200 OK') never sent when explicitly requested

From: Date: Sun, 12 Dec 2004 00:40:22 +0000
Subject: #30510 [Opn->Bgs]: header('HTTP/1.0 200 OK') never sent when explicitly requested
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-70054@lists.php.net to get a copy of this message
 ID:               30510
 Updated by:       sniper@php.net
 Reported By:      michael at neko dot cc
-Status:           Open
+Status:           Bogus
 Bug Type:         CGI related
 Operating System: Windows
 PHP Version:      4.3.9
 New Comment:

- Fixed bug #27026 (Added "cgi.nph" php.ini option to allow forcing of
the
  'Status: 200' header that is not normally needed). (Ilia)

Reading the NEWS file might have been a good idea?



Previous Comments:
------------------------------------------------------------------------

[2004-10-21 14:02:04] michael at neko dot cc

Description:
------------
Specifying header("HTTP/1.1 200 OK") should emit Status: 200 but
nothing appears.

See: Bug #27026 "header('HTTP/1.0 200 OK') never sent when explicitly
requested" - seems like this issue was reported for unix PHP &
apparently was fixed but doesn't show up in the latest Win CVS.

Reproduce code:
---------------
<?php

header("HTTP/1.1 200 OK");
header("Content-Type: text/plain");

?>

Expected result:
----------------
C:\PHP>php run.php
Status: 200
X-Powered-By: PHP/4.3.10-dev
Content-Type: text/plain


Actual result:
--------------
C:\PHP>php run.php
X-Powered-By: PHP/4.3.10-dev
Content-Type: text/plain



------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=30510&edit=1


Thread (2 messages)

« previous php.bugs (#70054) next »