on php versions lower than 7.4, file_get_contents on flock-ed file returned empty string on Windows
starting php 7.4, it throws an error "file_get_contents(): read of 8192 bytes failed with errno=13 Permission denied"
see https://bugs.php.net/bug.php?id=79398
On windows, file lock needs to be released before reading file contents, even if it's within the same process.
on php versions lower than 7.4,
file_get_contents
onflock
-ed file returned empty string on Windows starting php 7.4, it throws an error "file_get_contents(): read of 8192 bytes failed with errno=13 Permission denied" see https://bugs.php.net/bug.php?id=79398On windows, file lock needs to be released before reading file contents, even if it's within the same process.