Skip to content

Commit 093479b

Browse files
committed
minor #13757 Be more specific about flock releasing locks automatically (mariusbuescher)
This PR was merged into the 3.4 branch. Discussion ---------- Be more specific about flock releasing locks automatically While working on some Unit-Tests for my application I found out about a problem regarding the `Flock` store. Unfortunately it is a problem coming from the way PHP works internally. Resource handles/file locks are released as soon as the variable holding the handle is going out of scope. This makes it easy for developers when directly working with files, but in this case, it was stopping me. To make this restriction more clear, I just changed that line in the documentation. Commits ------- bd431e0 [lock] Be more specific about flock releasing locks
2 parents 36f5d75 + bd431e0 commit 093479b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/lock.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ FlockStore
220220

221221
The FlockStore uses the file system on the local computer to create the locks.
222222
It does not support expiration, but the lock is automatically released when the
223-
PHP process is terminated::
223+
lock object goes out of scope and is freed by the garbage collector::
224224

225225
use Symfony\Component\Lock\Store\FlockStore;
226226

0 commit comments

Comments
 (0)