Re: Re: Mandatory File Locking in PHP?

From: Date: Thu, 30 Jan 2003 00:11:25 +0000
Subject: Re: Re: Mandatory File Locking in PHP?
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-93791@lists.php.net to get a copy of this message
The real question is why you need mandatory locks and not advisory locks. If everyone is playing on the same team, advisory locks should provide all the semantics you need (and are very portable). Mandatory locks (on linux at least) require not only special mount options, but special perms to the file (g-x, g+s, I believe). That seems like a lot to require inside an extension.
The dba solution so far is based on flock() and where not appropriate use fctnl(). I tried to have the lock stuff working on as many systems as possible. marcus

« previous php.dev (#93791) next »