#39138 [Com]: LOCK_NB for flock() does not work

From: Date: Thu, 14 Jan 2010 14:21:32 +0000
Subject: #39138 [Com]: LOCK_NB for flock() does not work
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-146652@lists.php.net to get a copy of this message
ID: 39138 Comment by: sp at vovochka dot org dot ua Reported By: php at koterov dot ru Status: No Feedback Bug Type: Filesystem function related Operating System: Windows, Linux PHP Version: 5.1.6 New Comment: Guys! Are you going to fix this bug. It is more than 3 years old! It is reproducable on NTFS. Previous Comments: ------------------------------------------------------------------------ [2007-05-28 10:50:44] bugreporter at sigproc dot de Hi, problem might be just due to unclear documentation on how to apply LOCK_NB. The current flock docu says one should "add LOCK_NB to $operation" (i.e. to the second parameter of the function). A comment on the docu page wants to assure us that neither of the following will work (administrator at proxy-list dot org, 30-Apr-2007 08:30) <?php flock($fp, LOCK_EX and LOCK_SH); flock($fp, LOCK_EX or LOCK_SH); flock($fp, LOCK_EX + LOCK_SH); ?> (Rather separate flock calls should be used.) So question to the PHP devs: what is the right way to do it? Cheers ------------------------------------------------------------------------ [2006-10-22 01:00:00] php-bugs at lists dot php dot net No feedback was provided for this bug for over a week, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open". ------------------------------------------------------------------------ [2006-10-14 13:09:50] tony2001@php.net Where can I see the results? (as I'm unable to reproduce it locally) ------------------------------------------------------------------------ [2006-10-13 19:06:49] php at koterov dot ru I cannot try snapshot on Linux - I have no machine for experiments. And you said that Linux has no problem in new version. Now we are talking about Windows only. ------------------------------------------------------------------------ [2006-10-13 14:20:28] tony2001@php.net Wait, so did you try the snapshot on Linux? Or are you talking only of Windows now? ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/39138 -- Edit this bug report at http://bugs.php.net/?id=39138&edit=1

« previous php.bugs (#146652) next »