php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #30510 header('HTTP/1.0 200 OK') never sent when explicitly requested
Submitted: 2004-10-21 14:02 UTC Modified: 2004-12-12 01:40 UTC
From: michael at neko dot cc Assigned:
Status: Not a bug Package: CGI/CLI related
PHP Version: 4.3.9 OS: Windows
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: michael at neko dot cc
New email:
PHP Version: OS:

 

 [2004-10-21 14:02 UTC] 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


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-12-12 01:40 UTC] sniper@php.net
- 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?

 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Thu Jul 03 09:01:34 2025 UTC