note 101247 deleted from function.flock by danbrown

From: Date: Sun, 05 Dec 2010 16:40:12 +0000
Subject: note 101247 deleted from function.flock by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-174623@lists.php.net to get a copy of this message
Note Submitter: holdoffhunger at gmail dot com ---- >>"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.

« previous php.notes (#174623) next »