Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit093479b

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 automaticallyWhile 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 parents36f5d75 +bd431e0 commit093479b

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 processisterminated::
223+
lock object goes out of scope andisfreed by the garbage collector::
224224

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

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp