php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #2126 session_start() always returns false
Submitted: 1999-08-22 22:15 UTC Modified: 1999-08-23 11:38 UTC
From: bshapiro at getdown dot org Assigned:
Status: Closed Package: Misbehaving function
PHP Version: 4.0 Beta 2 OS: Linux / Mandrake 6
Private report: No CVE-ID: None
 [1999-08-22 22:15 UTC] bshapiro at getdown dot org
<?php
 echo "session_start returned: ".(session_start()?"true":"false");
?>

Will always output false. The docs say this should ALWAYS return true. Perhaps a more appropriate behavior would be to return true on correct session init???

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1999-08-23 11:38 UTC] sas at cvs dot php dot net
session_start() does not return anything.

I've changed its behaviour now to match the documentation, so it will always return true.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 26 12:01:30 2024 UTC