]> granicus.if.org Git - php/commitdiff
MFH: Fixed bug #25070 (Don't forget to unlock session files on win32 before
authorIlia Alshanetsky <iliaa@php.net>
Wed, 24 Sep 2003 23:39:22 +0000 (23:39 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Wed, 24 Sep 2003 23:39:22 +0000 (23:39 +0000)
closing them).

NEWS
ext/session/mod_files.c

diff --git a/NEWS b/NEWS
index 71e2c16d6dda89d992a502984bffcd9f084ab488..97092d13c148f0a797edf9bd61cd709c36f61916 100644 (file)
--- 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)
index 74c709b2d64142671f7ec356c969ba08671c7f35..40b403d3d5e3251ecd7d8dcd1258dd653881ca48 100644 (file)
@@ -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;
        }