From 9b4201661cf4280b08708f9852c672be126c69ef Mon Sep 17 00:00:00 2001 From: lacatoire Date: Thu, 14 May 2026 10:40:38 +0200 Subject: [PATCH] [Sync EN] streamWrapper::stream_lock: document LOCK_NB as bitmask flag Fixes #618 --- .../stream/streamwrapper/stream-lock.xml | 26 +++++++++---------- 1 file changed, 12 insertions(+), 14 deletions(-) diff --git a/reference/stream/streamwrapper/stream-lock.xml b/reference/stream/streamwrapper/stream-lock.xml index 5879d4c9b..1069f4abd 100644 --- a/reference/stream/streamwrapper/stream-lock.xml +++ b/reference/stream/streamwrapper/stream-lock.xml @@ -1,6 +1,6 @@ - + @@ -15,13 +15,13 @@ public boolstreamWrapper::stream_lock intoperation - + Este método es llamado en respuesta a flock, cuando se utiliza file_put_contents (cuando el parámetro flags contiene LOCK_EX), stream_set_blocking y cuando se cierra el flujo (LOCK_UN). - + @@ -49,15 +49,13 @@ LOCK_UN para liberar un bloqueo (compartido o exclusivo). - - - LOCK_NB, utilice esta operación si no quiere que - flock bloquee mientras opera. - (no soportado en Windows) - - + + También es posible añadir LOCK_NB como máscara de bits + a una de las operaciones anteriores, si el bloqueo no debe bloquear + durante el intento de bloqueo (no soportado en Windows). + @@ -66,16 +64,16 @@ &reftitle.returnvalues; - + &return.success; - + &reftitle.errors; - + Emite un E_WARNING si la llamada a este método falla (es decir, no implementado). - +