#30469 [Opn->Bgs]: Cannot use Session In Shell mode
| From: | derick@php.net | Date: | Mon, 18 Oct 2004 08:32:34 +0000 |
| Subject: | #30469 [Opn->Bgs]: Cannot use Session In Shell mode | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-67718@lists.php.net to get a copy of this message | ||
ID: 30469
Updated by: derick@php.net
Reported By: xianglei at xinruinet dot com
-Status: Open
+Status: Bogus
Bug Type: Session related
Operating System: Linux
PHP Version: 4.3.8
New Comment:
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to
report
a bug at http://bugs.php.net/how-to-report.php
.
Previous Comments:
------------------------------------------------------------------------
[2004-10-18 10:31:16] xianglei at xinruinet dot com
Description:
------------
I found that session_start() function can not use when i wrote php as a
shell script.
Reproduce code:
---------------
#!/usr/local/php/bin/php
<?
session_start();
?>
Expected result:
----------------
Warning: session_start() [http://www.php.net/function.session-start]:
Cannot send session cookie - headers already sent in
/home/sms/php/test.php on line 3
Warning: session_start() [http://www.php.net/function.session-start]:
Cannot send session cache limiter - headers already sent (output
started at /home/sms/php/test.php:3) in /home/sms/php/test.php on line
3
Actual result:
--------------
Warning: session_start() [http://www.php.net/function.session-start]:
Cannot send session cookie - headers already sent in
/home/sms/php/test.php on line 3
Warning: session_start() [http://www.php.net/function.session-start]:
Cannot send session cache limiter - headers already sent (output
started at /home/sms/php/test.php:3) in /home/sms/php/test.php on line
3
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=30469&edit=1