Re: mkdir() , making 'mode' parameter optional
| From: | Andi Gutmans | Date: | Fri, 11 Jan 2002 10:13:48 +0000 |
| Subject: | Re: mkdir() , making 'mode' parameter optional | ||
| References: | 1 2 3 4 5 6 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-76599@lists.php.net to get a copy of this message | ||
At 05:31 AM 1/11/2002 +0100, Markus Fischer wrote:
On Fri, Jan 11, 2002 at 05:22:54AM +0100, Markus Fischer wrote :+2 :) AndiIn any case - a hardcoded 0777 isn't logical, apart from being less safe.It makes totally sense because it only relies on the umask() being set.Well, maybe I need to explain why 0777 _is_ logical (I thought people here know unix). It's the default value for the mkdir command, for perl, and for python because it makes sense to only rely on the umask() setting.So, why not have it too? Because PHP is none of the mentioned above ? Come on.I'm not discussing whether to add another INI switch (this is totally out of scope and belongs to something else, but not here).Anyone with decent objections?