File locking issues
| From: | Manuel Lemos | Date: | Tue, 04 Jan 2000 08:34:47 +0000 |
| Subject: | File locking issues | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-14251@lists.php.net to get a copy of this message | ||
Hello,
Since we have to pass an opened file handle to flock(), if the file
is closed with a pending lock, is that lock freed?
If I call fpassthru() the file is implicitly closed. In that case would
any pending locks be freed?
What about when the script exits? Would any pending locks be freed even
when PHP is running as Apache module and the script exits with normal or
syntax error exit (the Apache process is not killed)?
Regards,
Manuel Lemos
Web Programming Components using PHP Classes.
Look at: http://phpclasses.UpperDesign.com/?user=mlemos@acm.org
--
E-mail: mlemos@acm.org
URL: http://www.mlemos.e-na.net/
PGP key: http://www.mlemos.e-na.net/ManuelLemos.pgp
--