From: michael at neko dot cc
Operating system: Windows
PHP version: 4.3.9
PHP Bug Type: CGI related
Bug description: header('HTTP/1.0 200 OK') never sent when explicitly requested
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 bug report at http://bugs.php.net/?id=30510&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=30510&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=30510&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=30510&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=30510&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=30510&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=30510&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=30510&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=30510&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=30510&r=support
Expected behavior: http://bugs.php.net/fix.php?id=30510&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=30510&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=30510&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=30510&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=30510&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=30510&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=30510&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=30510&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=30510&r=float
MySQL Configuration Error: http://bugs.php.net/fix.php?id=30510&r=mysqlcfg