PHP 4.0 Bug #4864: session_destroy() is supposed to always return TRUE, but returns false.
| From: | juhl at eisenstein dot dk | Date: | Wed, 07 Jun 2000 12:26:26 +0000 |
| Subject: | PHP 4.0 Bug #4864: session_destroy() is supposed to always return TRUE, but returns false. | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-20456@lists.php.net to get a copy of this message | ||
From: juhl@eisenstein.dk
Operating system: Linux
PHP version: 4.0.0 Release
PHP Bug Type: Misbehaving function
Bug description: session_destroy() is supposed to always return TRUE, but returns false.
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