From 42766d07a5abf6aae0deb605b8dcf99fcb4c3499 Mon Sep 17 00:00:00 2001 From: Dominique FOURNIER Date: Tue, 19 Apr 2022 11:06:43 +0200 Subject: [PATCH] File: lockUN must remve the file from local stack to allow relocking --- src/File.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/File.php b/src/File.php index 8515f20..bc29f4e 100644 --- a/src/File.php +++ b/src/File.php @@ -507,6 +507,7 @@ class File { $res = flock ($this->locks[$filename], LOCK_UN); fclose ($this->locks[$filename]); + unset($this->locks[$filename]); } return $res; }