[PHP-DEV] does PHP5 do locking on PHP files that are included in a way PHP4 didn't?

2004-11-30 Thread Greg Beaver
Hi, I'm running into some race conditions with the CVS of PEAR installer in PHP5 where it fails to remove existing php files, and locks a file so firmly (Windows XP) that I have to reboot to get the OS to loose its grip on it. I'm wondering if the locking of included source files has changed fr

Re: [PHP-DEV] does PHP5 do locking on PHP files that are included in a way PHP4 didn't?

2004-11-30 Thread Wez Furlong
It shouldn't be locking the file. Is there any chance that you have a "zombie" process that does have a lock? I noticed some weird locking behaviour like this today using a recent cygwin release (seems like bash held a lock on a directory that I had cd'ed into earlier in the day). This was total

Re: [PHP-DEV] does PHP5 do locking on PHP files that are included in a way PHP4 didn't?

2004-11-30 Thread Greg Beaver
Wez Furlong wrote: It shouldn't be locking the file. Is there any chance that you have a "zombie" process that does have a lock? I noticed some weird locking behaviour like this today using a recent cygwin release (seems like bash held a lock on a directory that I had cd'ed into earlier in the day

Re: [PHP-DEV] does PHP5 do locking on PHP files that are included

2004-11-30 Thread Greg Beaver
I've got a short test script: saved as C:\php5\pear\test.php: '); fclose($fp); include_once $statedir . DIRECTORY_SEPARATOR . 'Tester.php'; unlink($statedir . DIRECTORY_SEPARATOR . 'Tester.php'); ?> It's *definitely* related to include_once/require_once Greg Output: Warning: unlink(C:\php5\pear\T

Re: [PHP-DEV] does PHP5 do locking on PHP files that are included in a way PHP4 didn't?

2004-11-30 Thread D . Kingma
Quoting Greg Beaver <[EMAIL PROTECTED]>: > Wez Furlong wrote: > > It shouldn't be locking the file. > > > > Is there any chance that you have a "zombie" process that does have a > > lock? I noticed some weird locking behaviour like this today using a > > recent cygwin release (seems like bash he

[PHP-DEV] [PATCH] Autoloading of functions

2004-11-30 Thread Vesselin Atanasov
Hello. Some time ago I have posted a patch that would make PHP call __autoload() for unknown functions too. I didn't get any feedback regarding the patch so I send it to the mailing list once again. The patch adds two constants AUTOLOAD_CLASS and AUTOLOAD_FUNCTION. The __autoload() definition is