Doc #53316 [Opn]: Locks still do not have to be removed manually.
| From: | cataphract@php.net | Date: | Mon, 15 Nov 2010 15:22:27 +0000 |
| Subject: | Doc #53316 [Opn]: Locks still do not have to be removed manually. | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-5526@lists.php.net to get a copy of this message | ||
Edit report at http://bugs.php.net/bug.php?id=53316&edit=1
ID: 53316
Updated by: cataphract@php.net
Reported by: DirectSoft1024 at mail dot ru
Summary: Locks still do not have to be removed manually.
Status: Open
Type: Documentation Problem
Package: Documentation problem
Operating System: Linux
PHP Version: 5.3.3
Block user comment: N
New Comment:
Related: bug #51771.
Previous Comments:
------------------------------------------------------------------------
[2010-11-15 11:57:50] DirectSoft1024 at mail dot ru
Description:
------------
Documentation at http://nl2.php.net/manual/en/function.flock.php
contains phrase "The automatic unlocking when the file's resource handle
is closed was removed. Unlocking now always has to be done manually."
Although it no longer calls flock(LOCK_UN) upon encountering fclose(),
lock still becomes released by OS when file is closed. So, the phrase
"unlocking now always has to be done manually" sounds confusing.
Unlocking is still automatic just like it was bore. The only thing that
changed is that now it's done not at PHP user side, but inside OS
kernel.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/bug.php?id=53316&edit=1