Bleeding edge - More precise flock() operation flags#2477
Bleeding edge - More precise flock() operation flags#2477ondrejmirtes merged 2 commits intophpstan:1.10.xfrom
Conversation
|
You've opened the pull request against the latest branch 1.11.x. If your code is relevant on 1.10.x and you want it to be released sooner, please rebase your pull request and change its target to 1.10.x. |
There was a problem hiding this comment.
code examples from https://www.php.net/manual/en/function.flock
There was a problem hiding this comment.
semantically we can be more precise if we want. as not all combinations of the constants are allowed.
0 is not allowed.
combinations of e.g. LOCK_EX and LOCK_SH are not valid
not sure its worth it though
There was a problem hiding this comment.
Can you use the constants instead of numbers?
There was a problem hiding this comment.
it seems we do not yet support constants in int-mask:
There was a problem hiding this comment.
ohh my bad: it works
bc4eed5 to
2316434
Compare
|
Thank you. |
No description provided.