Bug #15889 Updated: CGI Error when calling session_start()
| From: | jkgraham at tooleshed dot com | Date: | Wed, 06 Mar 2002 19:54:54 +0000 |
| Subject: | Bug #15889 Updated: CGI Error when calling session_start() | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-1823@lists.php.net to get a copy of this message | ||
ID: 15889
Updated by: jkgraham@tooleshed.com
Reported By: jkgraham@tooleshed.com
Status: Closed
Bug Type: IIS related
Operating System: Windows XP
PHP Version: 4.1.1
New Comment:
That was it! Fixed, thanks!
Previous Comments:
------------------------------------------------------------------------
[2002-03-06 06:10:35] 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-05 17:46:03] jkgraham@tooleshed.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
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=15889&edit=1