note 72002 added to function.flock

From: Date: Thu, 28 Dec 2006 16:55:09 +0000
Subject: note 72002 added to function.flock
Groups: php.notes 
Request: Send a blank email to php-notes+get-120983@lists.php.net to get a copy of this message
If you do some testing opening several tabs in firefox on the same URL you may find that LOCK_NB seems not to get respected and $wouldblock always is 0. Apparently this is a firefox problem. Try 2 different browsers or 2 separate wget, then there is no problem. http://bugs.php.net/bug.php?id=36824 I also confirm that you have to test the value of $wouldblock, not the return value of flock() if using LOCK_NB on linux (debian/ubuntu 2.6.15-26-386) ---- Server IP: 195.26.5.2 Probable Submitter: 217.117.193.59 (proxied: 192.168.8.71, unknown) ---- Manual Page -- http://www.php.net/manual/en/function.flock.php Edit -- https://master.php.net/note/edit/72002 Del: integrated -- https://master.php.net/note/delete/72002/integrated Del: useless -- https://master.php.net/note/delete/72002/useless Del: bad code -- https://master.php.net/note/delete/72002/bad+code Del: spam -- https://master.php.net/note/delete/72002/spam Del: non-english -- https://master.php.net/note/delete/72002/non-english Del: in docs -- https://master.php.net/note/delete/72002/in+docs Del: other reasons-- https://master.php.net/note/delete/72002 Reject -- https://master.php.net/note/reject/72002 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#120983) next »