Why does mkdir not set CHMOD to 0777?
0777
mkdir(\'/var/www/test\', 0777);
After the dir is made the CHMOD is set to 0755<
0755
From http://php.net/mkdir:
Note: mode is ignored on Windows. The mode is also modified by the current umask, which you can change using umask().
Note: mode is ignored on Windows.
mode
The mode is also modified by the current umask, which you can change using umask().