thetaphi                Sun May 29 05:47:23 2005 EDT

  Modified files:              
    /phpdoc/en/reference/filesystem/functions   umask.xml 
  Log:
  Warn user from using umask() in multithreaded webservers (bug #33176)
  
http://cvs.php.net/diff.php/phpdoc/en/reference/filesystem/functions/umask.xml?r1=1.6&r2=1.7&ty=u
Index: phpdoc/en/reference/filesystem/functions/umask.xml
diff -u phpdoc/en/reference/filesystem/functions/umask.xml:1.6 
phpdoc/en/reference/filesystem/functions/umask.xml:1.7
--- phpdoc/en/reference/filesystem/functions/umask.xml:1.6      Mon Jan 12 
21:18:00 2004
+++ phpdoc/en/reference/filesystem/functions/umask.xml  Sun May 29 05:47:23 2005
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.6 $ -->
+<!-- $Revision: 1.7 $ -->
 <!-- splitted from ./en/functions/filesystem.xml, last change in rev 1.2 -->
   <refentry id="function.umask">
    <refnamediv>
@@ -22,6 +22,14 @@
      <function>umask</function> without arguments simply returns the
      current umask.
     </para>
+    <note>
+     <para>
+      Avoid using this function in multithreaded webservers. Better change the 
file
+      permissions with <function>chmod</function> after creating the file. 
Using
+      <function>umask</function> can lead to unexspected behavior of 
concurrently
+      running scripts and the webserver itsself because they all use the same 
umask.
+     </para>
+    </note>
    </refsect1>
   </refentry>
 

Reply via email to