PHP mkdir( $recursive = true ) skips last directory

后端 未结 7 1938
南旧
南旧 2021-02-20 10:39

I\'ve got the following piece of code on a PHP 5.2.4 (no safe_mode) linux server:

mkdir( $path, 0777, true );

when I enter a path like:

<
相关标签:
7条回答
  • 2021-02-20 11:09

    What is your PHP version? Is safe_mode turned on?

    If so, then it could be that you are experiencing http://bugs.php.net/bug.php?id=43276

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