ID: 43256 User updated by: carsten_sttgt at gmx dot de Reported By: carsten_sttgt at gmx dot de -Status: Feedback +Status: Open Bug Type: IIS related Operating System: Windows_NT PHP Version: 5.2.5 New Comment:
> Where are you reporting the bug? In ISAPI or CGI? Both. With only using this code: | header('Location: http://www.example.com/', true, 303); ISAPI does not set the (default) reason phrase. CGI (NPH) does not return a complete HTTP response message. The status line is missing. Previous Comments: ------------------------------------------------------------------------ [2007-11-19 14:44:52] [EMAIL PROTECTED] Okay, I'm a bit confused now. Where are you reporting the bug? In ISAPI or CGI? ------------------------------------------------------------------------ [2007-11-19 01:27:26] carsten_sttgt at gmx dot de > There's also this setting: > ; cgi.nph = 1 There is no difference: | D:\PHP>cat nph-test.php | <?php | header('Location: http://www.example.com/', true, 303); | ?> | | D:\PHP>pear-request -r 0 -S -o http://localhost/phpinfo.php |\ | grep -E "cgi.rfc2616_headers|cgi.nph" | cgi.nph11 | cgi.rfc2616_headers11 | | D:\PHP>pear-request -r 0 -S http://localhost/nph-test.php | GET http://localhost/nph-test.php --> ERROR: Malformed response BTW: This setting is only available with CGI, but not with ISAPI. Regards, Carsten ------------------------------------------------------------------------ [2007-11-17 22:20:49] [EMAIL PROTECTED] There's also this setting: ; cgi.nph = 1 Try to turn that off / on. ------------------------------------------------------------------------ [2007-11-17 12:03:15] carsten_sttgt at gmx dot de > what is this set in your php.ini: cgi.rfc2616_headers = 0 Now you address the NPH-CGI issue. Correct, my first tests was with "0". Now with "1": | D:\PHP>pear-request -r 0 -S -o http://localhost/phpinfo.php |\ | grep "cgi.rfc2616_headers" | cgi.rfc2616_headers11 with Testscript 1: ------------------ | D:\PHP>pear-request -r 0 -S http://localhost/nph-test.php | GET http://localhost/nph-test.php --> 303 See Other Works now. (thanks for the hint) with Testscript 2: ------------------ | D:\PHP>pear-request -r 0 -S http://localhost/nph-test.php | GET http://localhost/nph-test.php --> ERROR: Malformed response Don't work. So we have a similar result as with ISAPI. There is only a correct result, if you also explicitly set the "Status" header. Only setting the "Location" header with the code parameter does not work correctly. Regards, Carsten ------------------------------------------------------------------------ [2007-11-16 12:46:58] [EMAIL PROTECTED] what is this set in your php.ini: cgi.rfc2616_headers = 0 (look in the phpinfo() output!) ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/43256 -- Edit this bug report at http://bugs.php.net/?id=43256&edit=1