iliaa Mon Apr 17 23:29:46 2006 UTC Modified files: /php-src/ext/session mod_files.c Log: MFB51: Fixed Bug #36872 (session_destroy() fails after call to session_regenerate_id(true)). http://cvs.php.net/viewcvs.cgi/php-src/ext/session/mod_files.c?r1=1.102&r2=1.103&diff_format=u Index: php-src/ext/session/mod_files.c diff -u php-src/ext/session/mod_files.c:1.102 php-src/ext/session/mod_files.c:1.103 --- php-src/ext/session/mod_files.c:1.102 Sun Jan 1 13:09:53 2006 +++ php-src/ext/session/mod_files.c Mon Apr 17 23:29:46 2006 @@ -16,7 +16,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: mod_files.c,v 1.102 2006/01/01 13:09:53 sniper Exp $ */ +/* $Id: mod_files.c,v 1.103 2006/04/17 23:29:46 iliaa Exp $ */ #include "php.h" @@ -397,10 +397,12 @@ 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;
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php