ID: 27026
Updated by: [EMAIL PROTECTED]
Reported By: achowe at snert dot com
-Status: Open
+Status: Assigned
Bug Type: CGI related
-Operating System: Windows
+Operating System: *
-PHP Version: 4.3.4
+PHP Version: 4CVS, 5CVS
-Assigned To:
+Assigned To: edink
New Comment:
>From cgi_main.c CVS log:
revision 1.190.2.4
date: 2002/11/22 13:50:40; author: edink; state: Exp; lines: +10 -7
Don't send default http status (200) (Thanks to Sascha Schumann for
idea).
Edin, can you handle this report please. :)
Previous Comments:
------------------------------------------------------------------------
[2004-01-23 15:42:27] achowe at snert dot com
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 this bug report at http://bugs.php.net/?id=27026&edit=1