mirror of
https://github.com/php/php-src.git
synced 2024-09-24 03:17:26 +00:00
MFB51: Fixed Bug #36872 (session_destroy() fails after call to
session_regenerate_id(true)).
This commit is contained in:
parent
8bd7796184
commit
333787ff7f
@ -397,10 +397,12 @@ PS_DESTROY_FUNC(files)
|
||||
if (!ps_files_path_create(buf, sizeof(buf), data, key))
|
||||
return FAILURE;
|
||||
|
||||
ps_files_close(data);
|
||||
if (data->fd != -1) {
|
||||
ps_files_close(data);
|
||||
|
||||
if (VCWD_UNLINK(buf) == -1) {
|
||||
return FAILURE;
|
||||
if (VCWD_UNLINK(buf) == -1) {
|
||||
return FAILURE;
|
||||
}
|
||||
}
|
||||
|
||||
return SUCCESS;
|
||||
|
Loading…
Reference in New Issue
Block a user