0777 directory permissions, why do we need that? #4484
-
In src/Cache/FilesystemCache.php write function,
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
Beta Was this translation helpful? Give feedback.
mkdir($dir, 0777, true)
does not give full permission on the folder.The actual permissions of the folder will depend on the umask being configured (which is often
0022
), which is the right thing to do (see also the permissions of the file itself where we usechmod($key, 0666 & ~umask())
becausechmod
does not automatically applies the umask)