diff --git a/reference/filesystem/functions/flock.xml b/reference/filesystem/functions/flock.xml
index 2236e41d9c..5bf0159dc3 100644
--- a/reference/filesystem/functions/flock.xml
+++ b/reference/filesystem/functions/flock.xml
@@ -28,7 +28,7 @@
(which means all accessing programs have to use the same way of locking
or it will not work). By default, this function will block until the
requested lock is acquired; this may be controlled (on non-Windows
- platforms) with the LOCK_NB option documented below.
+ platforms) with the LOCK_NB option documented below.
@@ -68,9 +68,9 @@
- It is also possible to add LOCK_NB if you don't
- want flock to block while locking.
- (not supported on Windows)
+ It is also possible to add LOCK_NB as a bitmask to one
+ of the above operations if you don't want flock to
+ block while locking. (not supported on Windows)
@@ -79,7 +79,7 @@
The optional third argument is set to &true; if the lock would block
- (EWOULDBLOCK errno condition).
+ (EWOULDBLOCK errno condition). (not supported on Windows)
@@ -142,6 +142,28 @@ if (flock($fp, LOCK_EX)) { // do an exclusive lock
fclose($fp);
+?>
+]]>
+
+
+
+
+
+ flock using the LOCK_NB option
+
+
]]>
@@ -153,7 +175,8 @@ fclose($fp);
&reftitle.notes;
- flock locks mandatory under Windows.
+ flock locks mandatory under Windows aswell as some
+ POSIX based operating systems.
@@ -164,6 +187,13 @@ fclose($fp);
fopen).
+
+
+ POSIX.1 compatible systems will release the scripts flock's
+ on a file, if the scripts uses fclose on any file handle
+ on that file.
+
+
Assigning other value to handle argument in the
@@ -171,11 +201,6 @@ fclose($fp);
-
- flock will not work on NFS and many other networked
- file systems. Check your operating system documentation for more
- details.
-
On some operating systems flock is implemented at
the process level. When using a multithreaded server API like ISAPI you