php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #15889 CGI Error when calling session_start()
Submitted: 2002-03-05 17:46 UTC Modified: 2002-03-06 14:54 UTC
From: jkgraham at tooleshed dot com Assigned:
Status: Closed Package: IIS related
PHP Version: 4.1.1 OS: Windows XP
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: jkgraham at tooleshed dot com
New email:
PHP Version: OS:

 

 [2002-03-05 17:46 UTC] jkgraham at tooleshed dot com
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

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-03-06 06:10 UTC] sander@php.net
Very likely to be caused by and incorrect session_savepath. If that's not the case, reopen this report.

This bug has already been fixed in CVS.
 [2002-03-06 14:54 UTC] jkgraham at tooleshed dot com
That was it! Fixed, thanks!
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sun Jul 13 14:01:31 2025 UTC