From: [EMAIL PROTECTED] Operating system: Windows XP PHP version: 4.1.1 PHP Bug Type: IIS related Bug description: CGI Error when calling session_start()
I've narrowed the bad code down to this: [START] <?php session_start(); ?> <html> <body> Hello! </body> </html> [END] When I try to go to this page a pop-op message is displayed that says: "php.exe has encountered a problem and needs to close." And it gives you the option to send a report to Microsoft. This is the standard program crash message for XP. I select "Don't Send" and then the following error appears in the browser: [START] CGI Error The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are: [END] SYSTEM: I am using PHP 4.1.1, IIS5 and Windows XP. I've installed the php.exe in IIS with extension .php, "All Verbs" selected, "Script Engine" checked, and "Check that file exists" checked. SUMMARY: I've check the other bug reports with this similiar error, but they are reporting the problem with use of header() calls. In the code, if I comment out the session_start() it works fine. I also have tried this script in Virtual and non-Virtual directories on IIS - both return the error. I have other fairly complex scripts running on this server (that don't use sessions) that are working fine. Any ideas? -Jon Graham -- Edit bug report at http://bugs.php.net/?id=15889&edit=1 -- Fixed in CVS: http://bugs.php.net/fix.php?id=15889&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=15889&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=15889&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=15889&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=15889&r=support Expected behavior: http://bugs.php.net/fix.php?id=15889&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=15889&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=15889&r=submittedtwice