ID: 39138
Comment by: bugreporter at sigproc dot de
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:
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
Previous Comments:
------------------------------------------------------------------------
[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] [EMAIL PROTECTED]
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] [EMAIL PROTECTED]
Wait, so did you try the snapshot on Linux?
Or are you talking only of Windows now?
------------------------------------------------------------------------
[2006-10-13 14:12:58] php at koterov dot ru
Thanks for detailed testing.
Server version: Apache/2.0.54
Server built: Apr 16 2005 14:25:31
Windows XP, NTFS.
I don't know if my server threaded or not; where could I see that?
With command-line php.exe effect is NOT quite reproducible: first
process prints "bool(true) int(0)", second - "bool(false) int(0)". (Note
that in both cases we have 0 in $w; is it proper or not?)
One time I've got in additional a message: "Failed to start up
concurrent users module!" with php.exe, but cannot reproduce this
message again 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