ID: 39984 Updated by: [EMAIL PROTECTED] Reported By: marc dot bau at gmx dot net -Status: Assigned +Status: Suspended Bug Type: IIS related Operating System: WinXP PHP Version: 5.2.1 Assigned To: edink New Comment:
Seems that there is no way a CGI script can convince IIS to output something else than 302 response if you have location header. Same IIS using Microsofts latest FCGI isapi has no problems with PHP outputing correct status code. I recommend that you switch to that instead of using raw cgi, the perfomance icrease is dramatic as well. http://www.iis.net/default.aspx?tabid=1000051 Previous Comments: ------------------------------------------------------------------------ [2007-02-18 12:05:02] marc dot bau at gmx dot net Additional to this a header('HTTP/1.0 404 Not Found') produces a "404 OK". ------------------------------------------------------------------------ [2007-01-11 10:02:47] [EMAIL PROTECTED] Edin, could you plz verify if this problem is still valid? ------------------------------------------------------------------------ [2007-01-04 22:14:28] marc dot bau at gmx dot net open ------------------------------------------------------------------------ [2007-01-01 17:03:04] marc dot bau at gmx dot net If Perl, ColdFusion and ASP Pages are correct and PHP not, what do you think is wrong? I think PHP! Maybe there is something wrong in the way how the status is set or how the status is transfered to IIS... i don't know if there is something special in IIS, but it looks like a PHP Bug, while all other script languages are correct. ------------------------------------------------------------------------ [2007-01-01 16:53:35] [EMAIL PROTECTED] >From the PHP end of things the issue is resolved, if IIS does not properly handle the Status header in the event of redirects, that's hardly a PHP problem, no? ------------------------------------------------------------------------ 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/39984 -- Edit this bug report at http://bugs.php.net/?id=39984&edit=1