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 @@ +