From c1f178e14dddf5f4b4471ae5bde739747b8bebcf Mon Sep 17 00:00:00 2001 From: Jacy <85919441+jacyimp@users.noreply.github.com> Date: Tue, 31 Jan 2023 21:48:19 +0330 Subject: [PATCH] fix: flock LOCK_SH breaking for fwrite on windows --- src/IncludeInterceptor.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/IncludeInterceptor.php b/src/IncludeInterceptor.php index 3ebd627..d0adb5d 100644 --- a/src/IncludeInterceptor.php +++ b/src/IncludeInterceptor.php @@ -249,7 +249,7 @@ public function stream_lock($operation) { assert(is_resource($this->fp)); - return flock($this->fp, LOCK_SH); + return true; } public function stream_metadata($path, $option, $value)