Doc #55849 [Com]: session_start() return value mismatch to docs
| From: | tklingenberg at lastflood dot net | Date: | Wed, 05 Oct 2011 03:05:56 +0000 |
| Subject: | Doc #55849 [Com]: session_start() return value mismatch to docs | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-7292@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=55849&edit=1
ID: 55849
Comment by: tklingenberg at lastflood dot net
Reported by: tklingeberg at lastflood dot net
Summary: session_start() return value mismatch to docs
Status: Open
Type: Documentation Problem
Package: Session related
Operating System: Linux
PHP Version: 5.3.8
Block user comment: N
Private report: N
New Comment:
Related: https://bugs.php.net/bug.php?id=52982
(PHP 5.4 new session_status() function)
Previous Comments:
------------------------------------------------------------------------
[2011-10-04 23:12:54] tklingeberg at lastflood dot net
Description:
------------
In http://www.php.net/manual/en/function.session-start.php
it's written that the return value of the function:
Changelog
Version Description
5.3.0 If a session fails to start, then FALSE is returned. Previously TRUE was returned.
This information is wrong. With PHP 5.3.8 on my Fedora box in CLI mode, the function returns true,
even if called a second time. It gives a notice that it does not work, but it returns TRUE.
Related:
* https://bugs.php.net/bug.php?id=2126
Test script:
---------------
<?php
session_start();
$r = session_start();
echo (int) $r;
?>
Expected result:
----------------
0
Actual result:
--------------
1
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=55849&edit=1