php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #4864 session_destroy() is supposed to always return TRUE, but returns false.
Submitted: 2000-06-07 14:26 UTC Modified: 2000-06-28 14:35 UTC
From: juhl at eisenstein dot dk Assigned:
Status: Closed Package: Documentation problem
PHP Version: 4.0.0 Release OS: Linux
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: juhl at eisenstein dot dk
New email:
PHP Version: OS:

 

 [2000-06-07 14:26 UTC] juhl at eisenstein dot dk
In the manual it's stated, that session_destroy() always returns true, but that is not so. The following script produces the output "FALSE" on my box, indicating that session_destroy() does not return TRUE.

<?php
session_start();
$tmpvar = session_destroy();
if ($tmpvar) {
	echo "TRUE<BR>\n";
} else {
	echo "FALSE<BR>\n";
}
?>

If you need information about my version of PHP, then you can access this page: http://www.groundcontrol.dk/php/phpinfo.php - that file contains just <?php phpinfo(); ?> and should give you all the details about my version of PHP.

If you need my php.ini file, then just ask.


- Jesper Juhl - juhl@eisenstein.dk

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-06-08 19:46 UTC] sterling at cvs dot php dot net
this is a problem with the docs.
 [2000-06-28 14:35 UTC] sli at cvs dot php dot net
session_destroy returns void. The manual has been fixed.
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Mon Jun 15 01:00:02 2026 UTC