note 111304 added to function.flock

From: Date: Mon, 04 Feb 2013 16:53:06 +0000
Subject: note 111304 added to function.flock
Groups: php.notes 
Request: Send a blank email to php-notes+get-193524@lists.php.net to get a copy of this message
The statement in the documentation about the fact that "flock() uses mandatory locking instead of advisory locking on Windows" is wrong. Testing proves that on Windows XP, Vista, 7 and FreeBSD 8, 9 running Apache2.2.x with mod_PHP 5.4.x flock() does NOT use mandatory locking. This means that you must wrap not only writes, but also reads in flock() in all cases. ---- Server IP: 69.147.83.199 Probable Submitter: 171.21.80.126 ---- Manual Page -- http://php.net/manual/en/function.flock.php Edit -- https://master.php.net/note/edit/111304 Del: integrated -- https://master.php.net/note/delete/111304/integrated Del: useless -- https://master.php.net/note/delete/111304/useless Del: bad code -- https://master.php.net/note/delete/111304/bad+code Del: spam -- https://master.php.net/note/delete/111304/spam Del: non-english -- https://master.php.net/note/delete/111304/non-english Del: in docs -- https://master.php.net/note/delete/111304/in+docs Del: other reasons-- https://master.php.net/note/delete/111304 Reject -- https://master.php.net/note/reject/111304 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#193524) next »