[PHP-DOC] cvs: phpdoc /en/functions filesystem.xml From: Hartmut Holzgraefe (hartmut <email protected>)
Date: 10/19/00

hholzgra Thu Oct 19 06:11:07 2000 EDT

  Modified files:
    /phpdoc/en/functions filesystem.xml
  Log:
  added a warning about using flock() in multithreaded
  environments (taken from a thread on the german PHP
  mailing list)
  
  
Index: phpdoc/en/functions/filesystem.xml
diff -u phpdoc/en/functions/filesystem.xml:1.41 phpdoc/en/functions/filesystem.xml:1.42
--- phpdoc/en/functions/filesystem.xml:1.41 Sun Oct 1 16:12:15 2000
+++ phpdoc/en/functions/filesystem.xml Thu Oct 19 06:11:07 2000
@@ -998,6 +998,15 @@
      <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>