From 5e1bc854250fb904ea5bb7eb50df8a0074e2ea60 Mon Sep 17 00:00:00 2001 From: Uwe Schindler Date: Sun, 29 May 2005 09:47:23 +0000 Subject: [PATCH] Warn user from using umask() in multithreaded webservers (bug #33176) git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@187211 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/filesystem/functions/umask.xml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/reference/filesystem/functions/umask.xml b/reference/filesystem/functions/umask.xml index 6756a9d876..fe84283647 100644 --- a/reference/filesystem/functions/umask.xml +++ b/reference/filesystem/functions/umask.xml @@ -1,5 +1,5 @@ - + @@ -22,6 +22,14 @@ umask without arguments simply returns the current umask. + + + Avoid using this function in multithreaded webservers. Better change the file + permissions with chmod after creating the file. Using + umask can lead to unexspected behavior of concurrently + running scripts and the webserver itsself because they all use the same umask. + +