ID:               27026
 Updated by:       [EMAIL PROTECTED]
 Reported By:      achowe at snert dot com
 Status:           Assigned
 Bug Type:         CGI related
 Operating System: *
 PHP Version:      4CVS, 5CVS
 Assigned To:      edink
 New Comment:

Maybe we should have some php.ini option to enable nph mode?
e.g. "cgi.non_parsed_headers" which defaults to 0 ?




Previous Comments:
------------------------------------------------------------------------

[2004-01-25 00:22:17] [EMAIL PROTECTED]

>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. :)


------------------------------------------------------------------------

[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

Reply via email to