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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
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

Pull Requests

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-2026 The PHP Group
All rights reserved.
Last updated: Sat Jun 27 12:00:01 2026 UTC