mkdir() is not setting chmod to 0777

后端 未结 3 647
野的像风
野的像风 2021-01-21 07:05

Why does mkdir not set CHMOD to 0777?

mkdir(\'/var/www/test\', 0777);

After the dir is made the CHMOD is set to 0755<

相关标签:
3条回答
  • 2021-01-21 07:55

    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().

    0 讨论(0)
  • 2021-01-21 07:56

    According to the mkdir PHP documentation:

    The mode is also modified by the current umask, which you can change using umask().

    Could this be the case?

    0 讨论(0)
  • 2021-01-21 08:07

    Because it is influenced by the current umask. From the PHP mkdir documentation:

    The mode is also modified by the current umask, which you can change using umask().

    0 讨论(0)
提交回复
热议问题