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

From: Date: Wed, 01 Dec 2004 04:33:41 +0000
Subject: Re: does PHP5 do locking on PHP files that are included in a way PHP4 didn't?
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-13962@lists.php.net to get a copy of this message
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). This was totally unrelated to PHP.
I use Zend IDE, so yes, this is possibly the cause, I will experiment with all the zend extensions unloaded and see if it fixes it.
Are you also sure that this isn't the infamous need-to-sleep(1)-after-unlink-before-creating-a-new-file problem that has existed on Windows for while?
Perhaps it crept into XP SP 2? The thing is, it only happens in PHP 5, PHP 4 has had no race condition issues. There is a delicate balance between the registry/dependency registry that has caused problems, but this race condition seems to be completely unrelated, as the race was always caused on the .lock file. This occurs on any old random file that is being installed. Greg

« previous php.internals (#13962) next »