mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
added a warning about using flock() in multithreaded
environments (taken from a thread on the german PHP mailing list) git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@34123 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
85c283be53
commit
37cf1c9894
1 changed files with 9 additions and 0 deletions
|
@ -998,6 +998,15 @@ $fcontents = join ('', file ('http://www.php.net'));
|
|||
<function>Flock</function> returns true on success and false on
|
||||
error (e.g. when a lock could not be acquired).
|
||||
</simpara>
|
||||
<warning>
|
||||
<para>
|
||||
On most operation systems <function>flock</function> is implemented
|
||||
at the process level. When using a multithreaded server API like
|
||||
ISAPI you cannot rely on <function>flock</function> to protect
|
||||
files against other PHP scripts running in parallel threads of the
|
||||
same server instance!
|
||||
</para>
|
||||
</warning>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
|
|
Loading…
Reference in a new issue