PHP 4.0 Bug #7055: session_destroy bug
| From: | kufan at mail dot formosoft dot com | Date: | Fri, 06 Oct 2000 16:21:30 +0000 |
| Subject: | PHP 4.0 Bug #7055: session_destroy bug | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-34356@lists.php.net to get a copy of this message | ||
From: kufan@mail.formosoft.com
Operating system: WIN2000
PHP version: 4.0.2
PHP Bug Type: *Session related
Bug description: session_destroy bug
session_destroy doesn't because it call unlink before the file handle closed()
add :
if (data->fd > -1) {
close(data->fd);
data->fd = -1;
}
before V_UNLINK(buf) will fix the bug.