note 100864 added to function.flock
| From: | webmaster at bitpush dot com | Date: | Thu, 11 Nov 2010 16:31:39 +0000 |
| Subject: | note 100864 added to function.flock | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-173945@lists.php.net to get a copy of this message | ||
Regarding the change in PHP 5.3.2 with locked files:
Without having studied the PHP source code in detail, the situation appears to be as follows when
the PHP function fclose() is called:
Before 5.3.2 PHP would check if the file was locked, then release the lock, and then close the file.
From 5.3.2 PHP just closes the file.
But note, that the operating system releases the lock automatically when the file is closed.
Therefore a call to fclose() STILL releases the lock (this is tested with PHP 5.3.2, Linux, x64).
----
Server IP: 195.184.96.15
Probable Submitter: 86.52.14.32
----
Manual Page -- http://www.php.net/manual/en/function.flock.php
Edit -- https://master.php.net/note/edit/100864
Del: integrated -- https://master.php.net/note/delete/100864/integrated
Del: useless -- https://master.php.net/note/delete/100864/useless
Del: bad code -- https://master.php.net/note/delete/100864/bad+code
Del: spam -- https://master.php.net/note/delete/100864/spam
Del: non-english -- https://master.php.net/note/delete/100864/non-english
Del: in docs -- https://master.php.net/note/delete/100864/in+docs
Del: other reasons-- https://master.php.net/note/delete/100864
Reject -- https://master.php.net/note/reject/100864
Search -- https://master.php.net/manage/user-notes.php