Re: RE: [Gallery-users] can't create albums (fwd)
| From: | James E. Flemer | Date: | Mon, 06 May 2002 16:41:38 +0000 |
| Subject: | Re: RE: [Gallery-users] can't create albums (fwd) | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-83761@lists.php.net to get a copy of this message | ||
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 <jflemer@acm.jhu.edu> wrote:
> > Perhaps this broke it: (it looks like the most recent
> > change to mkdir())
> >
> > 3&9à
> > A) Aáhttp://cvs.php.net/diff.php/php4/ext/standard/file.c?r1=1.203&r2=1.204&ty=uÌPÀI
> > øœÇñVC½Œ™1‡
> >
> > 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
>
>