Re: Re: #18293 - mkdir()
| From: | nicos@php.net | Date: | Fri, 03 Jan 2003 19:49:24 +0000 |
| Subject: | Re: Re: #18293 - mkdir() | ||
| References: | 1 2 3 4 5 6 | Groups: | php.doc |
| Request: | Send a blank email to phpdoc+get-969350612@lists.php.net to get a copy of this message | ||
According to standard/file.c it looks like mkdir second argument is optional
and that it's 0777 by default.
So no need of any mode for windows. I'm working on the doc now.
--
Regards.
M.CHAILLAN Nicolas
nicos@php.net
www.WorldAKT.com Hébergement de sites internets.
"Michael Mauch" <michael.mauch@gmx.de> a écrit dans le message de news:
cffgex5tv.ln2@elmicha.333200002251-0001.dialin.t-online.de...
> Gabor Hojtsy <gabor@hojtsy.hu> wrote:
> >> 0777 is fine for WIN32.
> >
> > Well, this is not too scientific. The user notes indicate on that
> > page, that the read/write permissions can actually be set...
>
> Which user note is that? I can't find one saying that the permissions
> work on Win32. And in virtual_mkdir() in tsrm_virtual_cwd.c I see:
>
> #ifdef TSRM_WIN32
> retval = mkdir(new_state.cwd);
> #else
> retval = mkdir(new_state.cwd, mode);
> #endif
>
> So perhaps the manual should state that the second parameter of PHP's
> mkdir is ignored on Win32?
>
> To open another can of worms: the chmod manual page is also not very
> specific about the modes - and as I understand, you can have at least
> read-only files on Windows.
>
> Regards...
> Michael