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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: bshapiro at getdown dot org
New email:
PHP Version: OS:

 

 [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: Sun Jun 02 09:01:30 2024 UTC