Yep, on FreeBSD mode_t is "u_int16_t", whereas on Linux it
is a "__u_int".

-James

On 6 May 2002, Jim Winstead wrote:

> James E. Flemer <[EMAIL PROTECTED]> wrote:
> > Perhaps this broke it: (it looks like the most recent
> > change to mkdir())
> >
> > http://cvs.php.net/diff.php/php4/ext/standard/file.c?r1=1.203&r2=1.204&ty=u
> >
> > I am looking into it.
>
> passing a pointer to a mode_t (&mode) to zend_parse_parameters(), which
> uses it as a pointer to long, is probably the cause of the problem.
>
> mode should be declared as a long in the function, and cast to a mode_t
> when passed to VCWD_MKDIR.
>
> jim
>
>


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to