From: achowe at snert dot com
Operating system: Windows
PHP version: 4.3.4
PHP Bug Type: CGI related
Bug description: header('HTTP/1.0 200 OK') never sent when explicitly requested
Description:
------------
While testing a 3rd party HTTP server (under Cygwin) that expects nph CGI
behaviour, I have the following script:
#!/usr/local/bin/php-cgi
<?
header("HTTP/1.0 200 OK");
phpinfo();
?>
When called, the "HTTP/1.0 200 OK" line is never sent. If I rewrite the
script to change the status code:
#!/usr/local/bin/php-cgi
<?
header("HTTP/1.0 300 OK");
phpinfo();
?>
Only then does the "HTTP/1.0 300 OK" appear as expected. This result can
be verified by a telnet connection to the server or on the command line.
Expected result:
----------------
If I explicitly set:
header("HTTP/1.0 200 OK");
then I expect to see it in the output as the first line.
--
Edit bug report at http://bugs.php.net/?id=27026&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=27026&r=trysnapshot4
Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=27026&r=trysnapshot5
Fixed in CVS: http://bugs.php.net/fix.php?id=27026&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=27026&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=27026&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=27026&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=27026&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=27026&r=support
Expected behavior: http://bugs.php.net/fix.php?id=27026&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=27026&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=27026&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=27026&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=27026&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=27026&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=27026&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=27026&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=27026&r=float