note 43454 deleted from function.flock by danbrown

From: Date: Mon, 18 May 2009 00:45:51 +0000
Subject: note 43454 deleted from function.flock by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-155425@lists.php.net to get a copy of this message
Note Submitter: lockwang ---- your code has a mistake , i think you should change[ $lf = @fopen ($lf, 'x');] to [ $lf = @fopen ($lock, 'x');] and your code has a big problem that if your lockfile is not unlinked for any reason and your function will not work properly. so i think your function is not a good one.

« previous php.notes (#155425) next »