History log of /PHP-8.1/ext/standard/tests/file/bug81223.phpt (Results 1 – 2 of 2)
Revision Date Author Comments
# 52a00fe7 06-Jul-2021 Christoph M. Becker

Fix new test for PHP 8.0


# 520c00a5 05-Jul-2021 Christoph M. Becker

Fix #81223: flock() only locks first byte of file

`flock()` should lock the whole file, like on other systems which use
mandatory locking. We cannot use `0` like for `flck.l_len`, so we

Fix #81223: flock() only locks first byte of file

`flock()` should lock the whole file, like on other systems which use
mandatory locking. We cannot use `0` like for `flck.l_len`, so we use
the largest number, what is valid according to the documentation:
<https://docs.microsoft.com/en-us/windows/win32/api/fileapi/nf-fileapi-lockfileex#remarks>.

Closes GH-7216.

show more ...