Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
PHP 4.1.2 fails to create directories with an error indicating that mkdir was not provided the correct number of parameters. According to http://php.net/mkdir, the mode parameter is optional, but my server complains about it being missing. When I supplied this parameter, mkdir worked without a problem.
Comment | File | Size | Author |
---|---|---|---|
fscache_mkdir_patch.diff | 520 bytes | javanaut |
Comments
Comment #1
javanaut CreditAttribution: javanaut commentedReading the manual, I later noticed this:
"Note: Mode is ignored on Windows, and became optional in PHP 4.2.0."
That would make this a problem only for pre-PHP 4.2.0 users.
Comment #2
styro CreditAttribution: styro commentedYep I had also noticed that problem on Debian Woody.
Would 0777 be too insecure though? I've used 0700 without any problems.
Comment #3
javanaut CreditAttribution: javanaut commented0777 is the default mode if one is not specified. That is ANDed against your umask (typically 022), so whatever that is will be the final permission mode.
Comment #4
gordon CreditAttribution: gordon commentedchanged mod to 0750 which is more secure.
Comment #5
(not verified) CreditAttribution: commented