Closed (fixed)
Project:
FSCache
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
5 Oct 2004 at 16:44 UTC
Updated:
31 Oct 2004 at 12:20 UTC
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 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 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 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 commentedchanged mod to 0750 which is more secure.
Comment #5
(not verified) commented