Re: [PHP-DEV] mkdir() , making 'mode' parameter optional

2002-01-11 Thread Andi Gutmans
At 05:31 AM 1/11/2002 +0100, Markus Fischer wrote: >On Fri, Jan 11, 2002 at 05:22:54AM +0100, Markus Fischer wrote : > > > In 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. > > W

Re: [PHP-DEV] mkdir() , making 'mode' parameter optional

2002-01-11 Thread Andi Gutmans
Sounds fine to me. Andi At 10:41 PM 1/10/2002 +0100, Markus Fischer wrote: > Is there someone who would object modifying mkdir() so it > only needs the dirname to create and mode is optonal and > defaults to 0777 ? > > bool mkdir(string pathname[, int mode = 0777]); > > There

Re: [PHP-DEV] mkdir() , making 'mode' parameter optional

2002-01-10 Thread Markus Fischer
On Fri, Jan 11, 2002 at 05:22:54AM +0100, Markus Fischer wrote : > > In 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 th

Re: [PHP-DEV] mkdir() , making 'mode' parameter optional

2002-01-10 Thread Markus Fischer
On Fri, Jan 11, 2002 at 12:31:39AM +0100, Melvyn Sopacua wrote : > At 00:02 11-1-2002, Markus Fischer shared with all of us: > > >On Thu, Jan 10, 2002 at 11:46:50PM +0100, Melvyn Sopacua wrote : > >> Markus Fischer said at 22:41 10-1-2002: > >> > >> >Is there someone who would object modifyi

Re: [PHP-DEV] mkdir() , making 'mode' parameter optional

2002-01-10 Thread Melvyn Sopacua
At 00:02 11-1-2002, Markus Fischer shared with all of us: >On Thu, Jan 10, 2002 at 11:46:50PM +0100, Melvyn Sopacua wrote : > > Markus Fischer said at 22:41 10-1-2002: > > > > >Is there someone who would object modifying mkdir() so it > > >only needs the dirname to create and mode is opto

Re: [PHP-DEV] mkdir() , making 'mode' parameter optional

2002-01-10 Thread Markus Fischer
On Thu, Jan 10, 2002 at 11:46:50PM +0100, Melvyn Sopacua wrote : > Markus Fischer said at 22:41 10-1-2002: > > >Is there someone who would object modifying mkdir() so it > >only needs the dirname to create and mode is optonal and > >defaults to 0777 ? > > defaults to php_value php_u

Re: [PHP-DEV] mkdir() , making 'mode' parameter optional

2002-01-10 Thread Melvyn Sopacua
Markus Fischer said at 22:41 10-1-2002: > Is there someone who would object modifying mkdir() so it > only needs the dirname to create and mode is optonal and > defaults to 0777 ? defaults to php_value php_umask ? Same for 'touch' and fopen("w")? touch is now 600, so either align th

[PHP-DEV] mkdir() , making 'mode' parameter optional

2002-01-10 Thread Markus Fischer
Is there someone who would object modifying mkdir() so it only needs the dirname to create and mode is optonal and defaults to 0777 ? bool mkdir(string pathname[, int mode = 0777]); There're no BC impacts. - Markus -- Please always Cc to me when replying to me on the l