From: Ilia Alshanetsky Date: Wed, 24 Sep 2003 23:39:22 +0000 (+0000) Subject: MFH: Fixed bug #25070 (Don't forget to unlock session files on win32 before X-Git-Tag: php-4.3.4RC1~23 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=283476972f054e22ff0a2e3020217e25a0d88fab;p=php MFH: Fixed bug #25070 (Don't forget to unlock session files on win32 before closing them). --- diff --git a/NEWS b/NEWS index 71e2c16d6d..97092d13c1 100644 --- a/NEWS +++ b/NEWS @@ -49,6 +49,8 @@ PHP 4 NEWS - Fixed bug #25109 (Possible crash when fetching field names in pgsql). (Ilia) - Fixed bug #25106 (Added more stringent checks on bzopen() mode). (Ilia) - Fixed bug #25218 ("deflate" compressed pages had a gzip header). (Stefan) +- Fixed bug #25070 (Don't forget to unlock session files on win32 before + closing them). (Ilia) - Fixed bug #24402 (Compile failure with gettext 0.12.x). (Jani) - Fixed bug #23326 (ext/domxml: Attributes via append_child not supported). (Melvyn) diff --git a/ext/session/mod_files.c b/ext/session/mod_files.c index 74c709b2d6..40b403d3d5 100644 --- a/ext/session/mod_files.c +++ b/ext/session/mod_files.c @@ -124,6 +124,7 @@ static char *ps_files_path_create(char *buf, size_t buflen, ps_files *data, cons static void ps_files_close(ps_files *data) { if (data->fd != -1) { + flock(data->fd, LOCK_UN); close(data->fd); data->fd = -1; }