From 5ba8902e48c86dfecb89bec3f22c7f74de1708ac Mon Sep 17 00:00:00 2001 From: Hannes Magnusson Date: Wed, 25 Mar 2009 19:49:59 +0000 Subject: [PATCH] Initial commit git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@277782 c90b9560-bf6c-de11-be94-00142212c4b1 --- .../stream/streamwrapper/stream-lock.xml | 135 ++++++++++++++++++ reference/stream/versions.xml | 3 +- 2 files changed, 137 insertions(+), 1 deletion(-) create mode 100644 reference/stream/streamwrapper/stream-lock.xml diff --git a/reference/stream/streamwrapper/stream-lock.xml b/reference/stream/streamwrapper/stream-lock.xml new file mode 100644 index 0000000000..5698a7e96b --- /dev/null +++ b/reference/stream/streamwrapper/stream-lock.xml @@ -0,0 +1,135 @@ + + + + + + streamWrapper::stream_lock + Advisory file locking + + + + &reftitle.description; + + public boolstreamWrapper::stream_lock + modeoperation + + + This method is called in response to flock, when + file_put_contents (when flags + contains LOCK_EX), and when closing the stream + (LOCK_UN). + + + + + &reftitle.parameters; + + + + operation + + + operation is one of the following: + + + + LOCK_SH to acquire a shared lock (reader). + + + + + LOCK_EX to acquire an exclusive lock (writer). + + + + + LOCK_UN to release a lock (shared or exclusive). + + + + + LOCK_NB if you don't want + flock to block while locking. + (not supported on Windows) + + + + + + + + + + + + &reftitle.returnvalues; + + &return.success; + + + + + &reftitle.errors; + + Emits E_WARNING if call to this method fails (i.e. not implemented). + + + + + + + + &reftitle.seealso; + + + stream_set_blocking + stream_set_timeout + stream_set_write_buffer + + + + + + + diff --git a/reference/stream/versions.xml b/reference/stream/versions.xml index 5acb1f37a4..95f058c21a 100644 --- a/reference/stream/versions.xml +++ b/reference/stream/versions.xml @@ -1,5 +1,5 @@ - + @@ -61,6 +61,7 @@ +