ID: 9852 Comment by: kb3777 at hotmail dot com Reported By: ron dot baldwin at sourceprose dot com Status: Closed Bug Type: IIS related Operating System: Windows 2000 PHP Version: 4.2.1 New Comment:
I have the same problem with IIS 5 WIN 2k running Perl. The javascript redirect works for me most times. What is the real fix/problem? Does anyone know? I've heard Timing, IIS, Perl? Previous Comments: ------------------------------------------------------------------------ [2003-08-10 05:41:25] rio at x-tra dot nl The problem is caused in my case by using mail() in PHP. In one request do I use mssql*, mail functions and than redirect (header('location: ...')). Without using mail() all works fine. But when I use mail() I get "CGI Error" in 95% requests. Pedro's cgi.rfc2616_headers = 1 tip did not work in my case. 'Forground Applications' does "solve" the problem. Mail server is local (standard) MS SMTP Service. My conf is W2k / IIS 5.0 / PHP 4.3.2 / MSSQL 2k. ------------------------------------------------------------------------ [2003-06-11 09:52:20] wharrison at pro dot ie To follow up I set cgi.rfc2616_headers = 1 as Pedro suggested and have had no problems reported since. So I suggest trying this to anyone with these problems. ------------------------------------------------------------------------ [2003-05-28 08:50:36] wharrison at pro dot ie I am trying Pedro's cgi.rfc2616_headers = 1 tip. We noticed this problem a few times a day on an WinNT, IIS, PHP 4.3, MSSQL 2000 setup. I could also reproduce this with the bounce.php suggested a while ago. I was cosidering switching to Apache untill I read the post above. ------------------------------------------------------------------------ [2003-05-22 13:21:17] phpbugs at spudland dot com This is not just an IIS bug. I receive this bug on a production Win2K server that uses Apache 2.0.x and PHP as a CGI. The PHP script in question does not use re-directs, however it does add header information. When I comment out the MS-SQL commands, the error disappears. With MS-SQL commands uncommented, it serves up a storm of these errors. I will try the RFC option mentioned above my comment! Again, this bug appears to NOT be related to just IIS but rather the MS-SQL support. ------------------------------------------------------------------------ [2003-05-12 07:27:01] pedro at fundacaounimed dot com dot br I think I find the solution for this problem (at least on version 4.3.1)... Just put this line "cgi.rfc2616_headers = 1" on php.ini. Please, send us a message if it works. I had this problem during much time and looking for solution, I saw that many others have it too. PS.: sorry if there is some english error. ------------------------------------------------------------------------ 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/9852 -- Edit this bug report at http://bugs.php.net/?id=9852&edit=1