`flock` LOCK_SH, LOCK_EX, LOCK_UN options are exclusive
Open
@devnexen is already working on this.
Since Apr 12, 2025.
Category: Filesystem
Extension: standard
Feature
Status: Needs Triage
- Dominant language
- C
- Stars
- 40.4k
- Forks
- 8.1k
- Avg merge
- 2d 13h
- Merged PRs (30d)
- 96
Description
Description
related phpstan issue: https://github.com/phpstan/phpstan/issues/12850
repro: https://3v4l.org/4eurQ
I would expect php to throw an exception when any of LOCK_SH, LOCK_EX, LOCK_UN option is combined in one call.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.