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:
Hartmut Holzgraefe 2000-10-19 13:11:07 +00:00
parent 85c283be53
commit 37cf1c9894

View file

@ -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>