php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #7055 session_destroy bug
Submitted: 2000-10-06 12:21 UTC Modified: 2000-10-16 06:35 UTC
From: kufan at mail dot formosoft dot com Assigned:
Status: Closed Package: Session related
PHP Version: 4.0.2 OS: WIN2000
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: kufan at mail dot formosoft dot com
New email:
PHP Version: OS:

 

 [2000-10-06 12:21 UTC] kufan at mail dot formosoft dot com
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.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-10-16 06:35 UTC] dbeu@php.net
fixed in cvs
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Apr 28 19:01:28 2024 UTC