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
 [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

Add a Patch

Pull Requests

Add a Pull Request

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-2024 The PHP Group
All rights reserved.
Last updated: Fri May 17 08:01:35 2024 UTC