note 101247 added to function.flock

From: Date: Sun, 05 Dec 2010 16:04:52 +0000
Subject: note 101247 added to function.flock
Groups: php.notes 
Request: Send a blank email to php-notes+get-174620@lists.php.net to get a copy of this message
>>"You should lock the file _before_ opening it, and unlock _after_ closing it. Othervise >>an another process might be able to access the file between the lock/unlock and the open/close >>operation." The lock is never acquired using this advice. The flock seems to only take the pointer to the file, not a string containing the file name and location. ---- Server IP: 69.147.83.197 Probable Submitter: 68.14.139.89 ---- Manual Page -- http://www.php.net/manual/en/function.flock.php Edit -- https://master.php.net/note/edit/101247 Del: integrated -- https://master.php.net/note/delete/101247/integrated Del: useless -- https://master.php.net/note/delete/101247/useless Del: bad code -- https://master.php.net/note/delete/101247/bad+code Del: spam -- https://master.php.net/note/delete/101247/spam Del: non-english -- https://master.php.net/note/delete/101247/non-english Del: in docs -- https://master.php.net/note/delete/101247/in+docs Del: other reasons-- https://master.php.net/note/delete/101247 Reject -- https://master.php.net/note/reject/101247 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#174620) next »