ID:               30469
 Updated by:       [EMAIL PROTECTED]
 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

Reply via email to