Re: [PHP] unlink, symlink and caching

2005-12-22 Thread jgmtfia Mr
> Be sure to include the OS, filesystem type and the configure line > in the report, cause there seems to be something system dependent > causing it since the script you posted earlier worked fine on my > system. Thanks for your help. I appreciate it. -- PHP General Mailing List (http://www.php.

Re: [PHP] unlink, symlink and caching

2005-12-22 Thread Curt Zirzow
On Thu, Dec 22, 2005 at 02:41:40PM -0700, jgmtfia Mr wrote: > > > I just ran the test with php4 cli and it works correctly. > > > PHP 4.3.10-15 (cli) (built: May 9 2005 08:54:56) > > > > > > But with php5 cli and apache2 module it does not: > > > PHP 5.1.0b3 (cli) (built: Oct 18 2005 16:13:19) > >

Re: [PHP] unlink, symlink and caching

2005-12-22 Thread jgmtfia Mr
> > I just ran the test with php4 cli and it works correctly. > > PHP 4.3.10-15 (cli) (built: May 9 2005 08:54:56) > > > > But with php5 cli and apache2 module it does not: > > PHP 5.1.0b3 (cli) (built: Oct 18 2005 16:13:19) > > PHP 5.1.0 apache module > > The versions I ran the tests were on: >

Re: [PHP] unlink, symlink and caching

2005-12-22 Thread Curt Zirzow
On Thu, Dec 22, 2005 at 08:29:53AM -0700, jgmtfia Mr wrote: > > Thank you for checking on this. > > > > I am using debain stable with a 2.6.14.3 kernel. The filesystem in > > question is ext2 on a 48 MB ramdisk. > > > > I also did the following on another machine using ext2 on a harddisk > > with

Re: [PHP] unlink, symlink and caching

2005-12-22 Thread jgmtfia Mr
> Thank you for checking on this. > > I am using debain stable with a 2.6.14.3 kernel. The filesystem in > question is ext2 on a 48 MB ramdisk. > > I also did the following on another machine using ext2 on a harddisk > with command line php. I just ran the test with php4 cli and it works correctl

Re: [PHP] unlink, symlink and caching

2005-12-21 Thread jgmtfia Mr
> > The loop then continues forever with file_exists() returning true, but > > unlink() returns false with the error message "Warning: > > unlink(/config1/C) [function.unlink]: No such file or directory in > > /www/script.php on line 10" > > This might be an issue with the OS or Filessystem. The c

Re: [PHP] unlink, symlink and caching

2005-12-21 Thread Curt Zirzow
On Wed, Dec 21, 2005 at 11:27:23AM -0700, jgmtfia Mr wrote: > I have a directory with the files: > /config/A > /config/B > and > /config/C is a symlink to /config/A. > > Via php I unlink /config/C: > > $FILE = '/config/C'; > while(file_exists($FILE)){ >

[PHP] unlink, symlink and caching

2005-12-21 Thread jgmtfia Mr
I have a directory with the files: /config/A /config/B and /config/C is a symlink to /config/A. Via php I unlink /config/C: $FILE = '/config/C'; while(file_exists($FILE)){ unlink($FILE); clearstatcache(); } When run,