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
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: 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

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-10-16 06:35 UTC] dbeu@php.net
fixed in cvs
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Sat Oct 10 13:00:01 2026 UTC