[PHP-DEV] RE: [Gallery-users] can't create albums (fwd)

2002-05-06 Thread Rasmus Lerdorf

Bug 16905 seems to be real and is biting a few people on *BSD.  It looks
non-sensical to me and I don't really have decent access to a FreeBSD box
anymore.  Could someone on FreeBSD take a close look at this one?

-Rasmus

-- Forwarded message --
Date: Mon, 6 May 2002 10:28:10 -0400
From: Don Wang [EMAIL PROTECTED]
To: Troy [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: RE: [Gallery-users] can't create albums

Troy,

I suspect that you have hit a PHP 4.2 bug (possibly under BSD environment).
I had exactly same problem before. Bharat solved it for me. His patch is now
located at:

List: gallery-users
Subject:  [Gallery-users] PHP 4.2.0 new album issues
From: Brian Smyth [EMAIL PROTECTED]
Date: 2002-05-02 4:18:48
[Download message RAW]

Just as an FYI, the issues I (and others) were having are due to a PHP
bug: http://bugs.php.net/bug.php?id=16905

Bharat worked around the issue, and a patch is in CVS: \
http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/gallery/gallery/platform/fs_u
nix.php.di \
ff?r1=1.12r2=1.13

It isn't a strictly FreeBSD issue, I encountered the problem on OpenBSD.

Take care,

Brian
--
Brian Smyth
[EMAIL PROTECTED] || http://aries.etree.org/~hamal/

-Original Message-
From: Mediratta, Bharat [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 01, 2002 8:08 PM
To: 'Don Wang'
Subject: RE: New Album problem
Ok, a whole lot of debugging later I've figured out the
problem.  You're hitting this bug:

http://bugs.php.net/bug.php?id=16905

It would have saved a lot of time if I was able to see
your Apache error log, but I couldn't find it.  At any
rate, I've patched your code to work around this issue
and will roll the patch back into the trunk.  Thanks for
giving me access!

-Bharat

 -Original Message-
 From: Don Wang [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, May 01, 2002 3:36 PM
 To: Mediratta, Bharat
 Subject: New Album problem


 Bharat,

 When one clicks on new Album, automatically 6 new untitle albums are
 generated. Afterwards, each new click generates two more.

 I suspect this bug is php 4.2 upgrade related, although I
 know little about
 php to prove it. Right now I count at least three people
 having the exact
 same problem.



 List: gallery-users
 Subject:  RE: [Gallery-users] Problem adding new album
 (albums/album01-10)
 From: Mediratta, Bharat [EMAIL PROTECTED]
 Date: 2002-05-01 4:40:20
 [Download message RAW]



  From: Brian Smyth [mailto:[EMAIL PROTECTED]]
 
  When my admin user tries to create a new album, 10 new album
  directories named album01 through album10 (and so on if I try to
  add more albums) are created in my albums/ directory and I get
  a Document contains no data error from my web browser.
  Subsequently, gallery warns me on the top page that album01-10
  are not valid albums and should be deleted.  They are just empty
  directories.

 When you click new album once, you get 10 empty albums?  Or
 do you only get one blank album every click?

 Also, has anything else changed in your environment, like did
 you upgrade your version of PHP or anything else that might be
 related?

 Assuming that you can reproduce this readily, I'd love to
 get onto your machine via ssh or ftp and tinker with the code
 to see if I can figure out what's going wrong.  If that's
 possible please let me know.  Thanks,

 -Bharat




-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Troy
Sent: Monday, May 06, 2002 3:38 AM
To: [EMAIL PROTECTED]
Subject: [Gallery-users] can't create albums


After getting Gallery installed and working I can't create new albums.
After logging in and trying to create one, I get a page not found, then
when going back to the main gallery page, It shows 3 albums created
afterwords, all of which are named the same and have the same location.
Under each album is the error:

Warning: stat failed for /usr/local/www/data/gallery/albums//album.dat
(errno=2 - No such file or directory) in
/usr/local/www/data/gallery/platform/fs_unix.php on line 73
Dec 31, 1969. This album contains no items.

When configuring Gallery I set the Album directory and Albums URL to
/usr/local/www/data/gallery/albums, the URL to the gallery site is the
the default of hostname/gallery. The permissions to the albums directory
are correct, and it is creating these unusable albums in the correct
place of /gallery/albums. Any help appreciated, thanks.


___

Have big pipes? SourceForge.net is looking for download mirrors. We supply
the hardware. You get the recognition. Email Us: [EMAIL PROTECTED]


__[ g a l l e r y - u s e r s ]_

[ list archive/(un)subscribe -- http://gallery.sf.net/lists.php ]
[ gallery info/FAQ/download -- http://gallery.sf.net ]
[ gallery good karma -- http://gallery.sf.net/donate.php?dt=gu ]


___

Have big pipes? SourceForge.net is 

RE: [PHP-DEV] RE: [Gallery-users] can't create albums (fwd)

2002-05-06 Thread Insomniac Admin

I have several FreeBSD boxes I could test on, if you can give me version
numbers for the distributions of PHP and Apache you want me to test (and
any specific configure arguments) I can.

Might be worth giving me a list of what your looking for incase Im
missing the point heh

(I know that last request probably rules me out from being of use to the
testing procedure but hey, at least Im happy to help :P heh)

- Dan

-Original Message-
From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED]] 
Sent: 06 May 2002 15:34
To: [EMAIL PROTECTED]
Subject: [PHP-DEV] RE: [Gallery-users] can't create albums (fwd)


Bug 16905 seems to be real and is biting a few people on *BSD.  It looks
non-sensical to me and I don't really have decent access to a FreeBSD
box anymore.  Could someone on FreeBSD take a close look at this one?

-Rasmus

-- Forwarded message --
Date: Mon, 6 May 2002 10:28:10 -0400
From: Don Wang [EMAIL PROTECTED]
To: Troy [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: RE: [Gallery-users] can't create albums

Troy,

I suspect that you have hit a PHP 4.2 bug (possibly under BSD
environment). I had exactly same problem before. Bharat solved it for
me. His patch is now located at:

List: gallery-users
Subject:  [Gallery-users] PHP 4.2.0 new album issues
From: Brian Smyth [EMAIL PROTECTED]
Date: 2002-05-02 4:18:48
[Download message RAW]

Just as an FYI, the issues I (and others) were having are due to a PHP
bug: http://bugs.php.net/bug.php?id=16905

Bharat worked around the issue, and a patch is in CVS: \
http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/gallery/gallery/platform/
fs_u
nix.php.di \
ff?r1=1.12r2=1.13

It isn't a strictly FreeBSD issue, I encountered the problem on OpenBSD.

Take care,

Brian
--
Brian Smyth
[EMAIL PROTECTED] || http://aries.etree.org/~hamal/

-Original Message-
From: Mediratta, Bharat [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 01, 2002 8:08 PM
To: 'Don Wang'
Subject: RE: New Album problem
Ok, a whole lot of debugging later I've figured out the problem.  You're
hitting this bug:

http://bugs.php.net/bug.php?id=16905

It would have saved a lot of time if I was able to see
your Apache error log, but I couldn't find it.  At any
rate, I've patched your code to work around this issue
and will roll the patch back into the trunk.  Thanks for
giving me access!

-Bharat

 -Original Message-
 From: Don Wang [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, May 01, 2002 3:36 PM
 To: Mediratta, Bharat
 Subject: New Album problem


 Bharat,

 When one clicks on new Album, automatically 6 new untitle albums are

 generated. Afterwards, each new click generates two more.

 I suspect this bug is php 4.2 upgrade related, although I know little 
 about php to prove it. Right now I count at least three people
 having the exact
 same problem.



 List: gallery-users
 Subject:  RE: [Gallery-users] Problem adding new album
 (albums/album01-10)
 From: Mediratta, Bharat [EMAIL PROTECTED]
 Date: 2002-05-01 4:40:20
 [Download message RAW]



  From: Brian Smyth [mailto:[EMAIL PROTECTED]]
 
  When my admin user tries to create a new album, 10 new album 
  directories named album01 through album10 (and so on if I try to add

  more albums) are created in my albums/ directory and I get a 
  Document contains no data error from my web browser. Subsequently,

  gallery warns me on the top page that album01-10 are not valid 
  albums and should be deleted.  They are just empty directories.

 When you click new album once, you get 10 empty albums?  Or do you 
 only get one blank album every click?

 Also, has anything else changed in your environment, like did you 
 upgrade your version of PHP or anything else that might be related?

 Assuming that you can reproduce this readily, I'd love to
 get onto your machine via ssh or ftp and tinker with the code to see 
 if I can figure out what's going wrong.  If that's possible please let

 me know.  Thanks,

 -Bharat




-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Troy
Sent: Monday, May 06, 2002 3:38 AM
To: [EMAIL PROTECTED]
Subject: [Gallery-users] can't create albums


After getting Gallery installed and working I can't create new albums.
After logging in and trying to create one, I get a page not found, then
when going back to the main gallery page, It shows 3 albums created
afterwords, all of which are named the same and have the same location.
Under each album is the error:

Warning: stat failed for /usr/local/www/data/gallery/albums//album.dat
(errno=2 - No such file or directory) in
/usr/local/www/data/gallery/platform/fs_unix.php on line 73 Dec 31,
1969. This album contains no items.

When configuring Gallery I set the Album directory and Albums URL to
/usr/local/www/data/gallery/albums, the URL to the gallery site is the
the default of hostname/gallery. The permissions to the albums directory
are correct, and it is creating these unusable albums in the correct

Re: [PHP-DEV] RE: [Gallery-users] can't create albums (fwd)

2002-05-06 Thread Dan Kalowsky

Initial tests with FreeBSD 4.5 and PHP 4.2.0 seem to be working in CGI
mode.  Building DSO now to test further.

On Mon, 6 May 2002, Rasmus Lerdorf wrote:

 Bug 16905 seems to be real and is biting a few people on *BSD.  It looks
 non-sensical to me and I don't really have decent access to a FreeBSD box
 anymore.  Could someone on FreeBSD take a close look at this one?

 -Rasmus

 -- Forwarded message --
 Date: Mon, 6 May 2002 10:28:10 -0400
 From: Don Wang [EMAIL PROTECTED]
 To: Troy [EMAIL PROTECTED]
 Cc: [EMAIL PROTECTED]
 Subject: RE: [Gallery-users] can't create albums

 Troy,

 I suspect that you have hit a PHP 4.2 bug (possibly under BSD environment).
 I had exactly same problem before. Bharat solved it for me. His patch is now
 located at:

 List: gallery-users
 Subject:  [Gallery-users] PHP 4.2.0 new album issues
 From: Brian Smyth [EMAIL PROTECTED]
 Date: 2002-05-02 4:18:48
 [Download message RAW]

 Just as an FYI, the issues I (and others) were having are due to a PHP
 bug: http://bugs.php.net/bug.php?id=16905

 Bharat worked around the issue, and a patch is in CVS: \
 http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/gallery/gallery/platform/fs_u
 nix.php.di \
 ff?r1=1.12r2=1.13

 It isn't a strictly FreeBSD issue, I encountered the problem on OpenBSD.

 Take care,

 Brian
 --
 Brian Smyth
 [EMAIL PROTECTED] || http://aries.etree.org/~hamal/

 -Original Message-
 From: Mediratta, Bharat [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, May 01, 2002 8:08 PM
 To: 'Don Wang'
 Subject: RE: New Album problem
 Ok, a whole lot of debugging later I've figured out the
 problem.  You're hitting this bug:

 http://bugs.php.net/bug.php?id=16905

 It would have saved a lot of time if I was able to see
 your Apache error log, but I couldn't find it.  At any
 rate, I've patched your code to work around this issue
 and will roll the patch back into the trunk.  Thanks for
 giving me access!

 -Bharat

  -Original Message-
  From: Don Wang [mailto:[EMAIL PROTECTED]]
  Sent: Wednesday, May 01, 2002 3:36 PM
  To: Mediratta, Bharat
  Subject: New Album problem
 
 
  Bharat,
 
  When one clicks on new Album, automatically 6 new untitle albums are
  generated. Afterwards, each new click generates two more.
 
  I suspect this bug is php 4.2 upgrade related, although I
  know little about
  php to prove it. Right now I count at least three people
  having the exact
  same problem.

 
 
  List: gallery-users
  Subject:  RE: [Gallery-users] Problem adding new album
  (albums/album01-10)
  From: Mediratta, Bharat [EMAIL PROTECTED]
  Date: 2002-05-01 4:40:20
  [Download message RAW]
 
 
 
   From: Brian Smyth [mailto:[EMAIL PROTECTED]]
  
   When my admin user tries to create a new album, 10 new album
   directories named album01 through album10 (and so on if I try to
   add more albums) are created in my albums/ directory and I get
   a Document contains no data error from my web browser.
   Subsequently, gallery warns me on the top page that album01-10
   are not valid albums and should be deleted.  They are just empty
   directories.
 
  When you click new album once, you get 10 empty albums?  Or
  do you only get one blank album every click?
 
  Also, has anything else changed in your environment, like did
  you upgrade your version of PHP or anything else that might be
  related?
 
  Assuming that you can reproduce this readily, I'd love to
  get onto your machine via ssh or ftp and tinker with the code
  to see if I can figure out what's going wrong.  If that's
  possible please let me know.  Thanks,
 
  -Bharat
 
 


 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]On Behalf Of Troy
 Sent: Monday, May 06, 2002 3:38 AM
 To: [EMAIL PROTECTED]
 Subject: [Gallery-users] can't create albums


 After getting Gallery installed and working I can't create new albums.
 After logging in and trying to create one, I get a page not found, then
 when going back to the main gallery page, It shows 3 albums created
 afterwords, all of which are named the same and have the same location.
 Under each album is the error:

 Warning: stat failed for /usr/local/www/data/gallery/albums//album.dat
 (errno=2 - No such file or directory) in
 /usr/local/www/data/gallery/platform/fs_unix.php on line 73
 Dec 31, 1969. This album contains no items.

 When configuring Gallery I set the Album directory and Albums URL to
 /usr/local/www/data/gallery/albums, the URL to the gallery site is the
 the default of hostname/gallery. The permissions to the albums directory
 are correct, and it is creating these unusable albums in the correct
 place of /gallery/albums. Any help appreciated, thanks.


 ___

 Have big pipes? SourceForge.net is looking for download mirrors. We supply
 the hardware. You get the recognition. Email Us: [EMAIL PROTECTED]


 __[ g a l l e r y - u s e r s ]_

 [ list 

Re: [PHP-DEV] RE: [Gallery-users] can't create albums (fwd)

2002-05-06 Thread James E. Flemer

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.203r2=1.204ty=u

I am looking into it.
-James

On Mon, 6 May 2002, Rasmus Lerdorf wrote:

 Bug 16905 seems to be real and is biting a few people on *BSD.  It looks
 non-sensical to me and I don't really have decent access to a FreeBSD box
 anymore.  Could someone on FreeBSD take a close look at this one?

 -Rasmus

 -- Forwarded message --
 Date: Mon, 6 May 2002 10:28:10 -0400
 From: Don Wang [EMAIL PROTECTED]
 To: Troy [EMAIL PROTECTED]
 Cc: [EMAIL PROTECTED]
 Subject: RE: [Gallery-users] can't create albums

 Troy,

 I suspect that you have hit a PHP 4.2 bug (possibly under BSD environment).
 I had exactly same problem before. Bharat solved it for me. His patch is now
 located at:

 List: gallery-users
 Subject:  [Gallery-users] PHP 4.2.0 new album issues
 From: Brian Smyth [EMAIL PROTECTED]
 Date: 2002-05-02 4:18:48
 [Download message RAW]

 Just as an FYI, the issues I (and others) were having are due to a PHP
 bug: http://bugs.php.net/bug.php?id=16905

 Bharat worked around the issue, and a patch is in CVS: \
 http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/gallery/gallery/platform/fs_u
 nix.php.di \
 ff?r1=1.12r2=1.13

 It isn't a strictly FreeBSD issue, I encountered the problem on OpenBSD.

 Take care,

 Brian
 --
 Brian Smyth
 [EMAIL PROTECTED] || http://aries.etree.org/~hamal/

 -Original Message-
 From: Mediratta, Bharat [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, May 01, 2002 8:08 PM
 To: 'Don Wang'
 Subject: RE: New Album problem
 Ok, a whole lot of debugging later I've figured out the
 problem.  You're hitting this bug:

 http://bugs.php.net/bug.php?id=16905

 It would have saved a lot of time if I was able to see
 your Apache error log, but I couldn't find it.  At any
 rate, I've patched your code to work around this issue
 and will roll the patch back into the trunk.  Thanks for
 giving me access!

 -Bharat

  -Original Message-
  From: Don Wang [mailto:[EMAIL PROTECTED]]
  Sent: Wednesday, May 01, 2002 3:36 PM
  To: Mediratta, Bharat
  Subject: New Album problem
 
 
  Bharat,
 
  When one clicks on new Album, automatically 6 new untitle albums are
  generated. Afterwards, each new click generates two more.
 
  I suspect this bug is php 4.2 upgrade related, although I
  know little about
  php to prove it. Right now I count at least three people
  having the exact
  same problem.

 
 
  List: gallery-users
  Subject:  RE: [Gallery-users] Problem adding new album
  (albums/album01-10)
  From: Mediratta, Bharat [EMAIL PROTECTED]
  Date: 2002-05-01 4:40:20
  [Download message RAW]
 
 
 
   From: Brian Smyth [mailto:[EMAIL PROTECTED]]
  
   When my admin user tries to create a new album, 10 new album
   directories named album01 through album10 (and so on if I try to
   add more albums) are created in my albums/ directory and I get
   a Document contains no data error from my web browser.
   Subsequently, gallery warns me on the top page that album01-10
   are not valid albums and should be deleted.  They are just empty
   directories.
 
  When you click new album once, you get 10 empty albums?  Or
  do you only get one blank album every click?
 
  Also, has anything else changed in your environment, like did
  you upgrade your version of PHP or anything else that might be
  related?
 
  Assuming that you can reproduce this readily, I'd love to
  get onto your machine via ssh or ftp and tinker with the code
  to see if I can figure out what's going wrong.  If that's
  possible please let me know.  Thanks,
 
  -Bharat
 
 


 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]On Behalf Of Troy
 Sent: Monday, May 06, 2002 3:38 AM
 To: [EMAIL PROTECTED]
 Subject: [Gallery-users] can't create albums


 After getting Gallery installed and working I can't create new albums.
 After logging in and trying to create one, I get a page not found, then
 when going back to the main gallery page, It shows 3 albums created
 afterwords, all of which are named the same and have the same location.
 Under each album is the error:

 Warning: stat failed for /usr/local/www/data/gallery/albums//album.dat
 (errno=2 - No such file or directory) in
 /usr/local/www/data/gallery/platform/fs_unix.php on line 73
 Dec 31, 1969. This album contains no items.

 When configuring Gallery I set the Album directory and Albums URL to
 /usr/local/www/data/gallery/albums, the URL to the gallery site is the
 the default of hostname/gallery. The permissions to the albums directory
 are correct, and it is creating these unusable albums in the correct
 place of /gallery/albums. Any help appreciated, thanks.


 ___

 Have big pipes? SourceForge.net is looking for download mirrors. We supply
 the hardware. You get the recognition. Email Us: [EMAIL PROTECTED]


 __[ g 

Re: [PHP-DEV] RE: [Gallery-users] can't create albums (fwd)

2002-05-06 Thread Markus Fischer

Hi,

Uh christ, I hope not! Thanks for looking into that.

- Markus

On Mon, May 06, 2002 at 12:31:31PM -0400, James E. Flemer 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.203r2=1.204ty=u
 
 I am looking into it.
 -James
 
 On Mon, 6 May 2002, Rasmus Lerdorf wrote:
 
  Bug 16905 seems to be real and is biting a few people on *BSD.  It looks
  non-sensical to me and I don't really have decent access to a FreeBSD box
  anymore.  Could someone on FreeBSD take a close look at this one?
 
  -Rasmus
 
  -- Forwarded message --
  Date: Mon, 6 May 2002 10:28:10 -0400
  From: Don Wang [EMAIL PROTECTED]
  To: Troy [EMAIL PROTECTED]
  Cc: [EMAIL PROTECTED]
  Subject: RE: [Gallery-users] can't create albums
 
  Troy,
 
  I suspect that you have hit a PHP 4.2 bug (possibly under BSD environment).
  I had exactly same problem before. Bharat solved it for me. His patch is now
  located at:
 
  List: gallery-users
  Subject:  [Gallery-users] PHP 4.2.0 new album issues
  From: Brian Smyth [EMAIL PROTECTED]
  Date: 2002-05-02 4:18:48
  [Download message RAW]
 
  Just as an FYI, the issues I (and others) were having are due to a PHP
  bug: http://bugs.php.net/bug.php?id=16905
 
  Bharat worked around the issue, and a patch is in CVS: \
  http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/gallery/gallery/platform/fs_u
  nix.php.di \
  ff?r1=1.12r2=1.13
 
  It isn't a strictly FreeBSD issue, I encountered the problem on OpenBSD.
 
  Take care,
 
  Brian
  --
  Brian Smyth
  [EMAIL PROTECTED] || http://aries.etree.org/~hamal/
 
  -Original Message-
  From: Mediratta, Bharat [mailto:[EMAIL PROTECTED]]
  Sent: Wednesday, May 01, 2002 8:08 PM
  To: 'Don Wang'
  Subject: RE: New Album problem
  Ok, a whole lot of debugging later I've figured out the
  problem.  You're hitting this bug:
 
  http://bugs.php.net/bug.php?id=16905
 
  It would have saved a lot of time if I was able to see
  your Apache error log, but I couldn't find it.  At any
  rate, I've patched your code to work around this issue
  and will roll the patch back into the trunk.  Thanks for
  giving me access!
 
  -Bharat
 
   -Original Message-
   From: Don Wang [mailto:[EMAIL PROTECTED]]
   Sent: Wednesday, May 01, 2002 3:36 PM
   To: Mediratta, Bharat
   Subject: New Album problem
  
  
   Bharat,
  
   When one clicks on new Album, automatically 6 new untitle albums are
   generated. Afterwards, each new click generates two more.
  
   I suspect this bug is php 4.2 upgrade related, although I
   know little about
   php to prove it. Right now I count at least three people
   having the exact
   same problem.
 
  
  
   List: gallery-users
   Subject:  RE: [Gallery-users] Problem adding new album
   (albums/album01-10)
   From: Mediratta, Bharat [EMAIL PROTECTED]
   Date: 2002-05-01 4:40:20
   [Download message RAW]
  
  
  
From: Brian Smyth [mailto:[EMAIL PROTECTED]]
   
When my admin user tries to create a new album, 10 new album
directories named album01 through album10 (and so on if I try to
add more albums) are created in my albums/ directory and I get
a Document contains no data error from my web browser.
Subsequently, gallery warns me on the top page that album01-10
are not valid albums and should be deleted.  They are just empty
directories.
  
   When you click new album once, you get 10 empty albums?  Or
   do you only get one blank album every click?
  
   Also, has anything else changed in your environment, like did
   you upgrade your version of PHP or anything else that might be
   related?
  
   Assuming that you can reproduce this readily, I'd love to
   get onto your machine via ssh or ftp and tinker with the code
   to see if I can figure out what's going wrong.  If that's
   possible please let me know.  Thanks,
  
   -Bharat
  
  
 
 
  -Original Message-
  From: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED]]On Behalf Of Troy
  Sent: Monday, May 06, 2002 3:38 AM
  To: [EMAIL PROTECTED]
  Subject: [Gallery-users] can't create albums
 
 
  After getting Gallery installed and working I can't create new albums.
  After logging in and trying to create one, I get a page not found, then
  when going back to the main gallery page, It shows 3 albums created
  afterwords, all of which are named the same and have the same location.
  Under each album is the error:
 
  Warning: stat failed for /usr/local/www/data/gallery/albums//album.dat
  (errno=2 - No such file or directory) in
  /usr/local/www/data/gallery/platform/fs_unix.php on line 73
  Dec 31, 1969. This album contains no items.
 
  When configuring Gallery I set the Album directory and Albums URL to
  /usr/local/www/data/gallery/albums, the URL to the gallery site is the
  the default of hostname/gallery. The permissions to the albums directory
  are correct, and it is creating these unusable 

Re: [PHP-DEV] RE: [Gallery-users] can't create albums (fwd)

2002-05-06 Thread Jim Winstead

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.203r2=1.204ty=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




Re: [PHP-DEV] RE: [Gallery-users] can't create albums (fwd)

2002-05-06 Thread James E. Flemer

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.203r2=1.204ty=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