diff --git a/appendices/migration80/deprecated.xml b/appendices/migration80/deprecated.xml index cf83564ca..e40e34cc3 100644 --- a/appendices/migration80/deprecated.xml +++ b/appendices/migration80/deprecated.xml @@ -11,9 +11,9 @@ - If a parameter with a default value is followed by a required parameter, the default value has - no effect. This is deprecated as of PHP 8.0.0 and can generally be resolved by dropping the - default value, without a change in functionality: + Si un parámetro con un valor predeterminado es seguido por un parámetro obligatorio, el valor predeterminado no + tiene efecto. Esto está obsoleto a partir de PHP 8.0.0 y generalmente puede resolverse eliminando el + valor predeterminado, sin cambiar la funcionalidad: @@ -26,9 +26,9 @@ function test($a, $b) {} // After - One exception to this rule are parameters of the form Type $param = null, where - the null default makes the type implicitly nullable. This usage remains allowed, but it is - recommended to use an explicit nullable type instead: + Una excepción a esta regla son los parámetros de la forma Type $param = null, donde + el valor predeterminado null hace que el tipo sea implícitamente nullable. Este uso sigue estando permitido, pero se + recomienda usar un tipo nullable explícito en su lugar: @@ -43,9 +43,9 @@ function test(?A $a, $b) {} // Recommended - Calling get_defined_functions with exclude_disabled - explicitly set to &false; is deprecated and no longer has an effect. - get_defined_functions will never include disabled functions. + Llamar a get_defined_functions con exclude_disabled + establecido explícitamente a &false; está obsoleto y ya no tiene efecto. + get_defined_functions nunca incluirá funciones deshabilitadas. @@ -57,34 +57,34 @@ function test(?A $a, $b) {} // Recommended - enchant_broker_set_dict_path and + enchant_broker_set_dict_path y enchant_broker_get_dict_path - are deprecated, because that functionality is neither available in libenchant < 1.5 nor in + están obsoletas, porque esa funcionalidad no está disponible ni en libenchant < 1.5 ni en libenchant-2. - enchant_dict_add_to_personal is deprecated; use - enchant_dict_add instead. + enchant_dict_add_to_personal está obsoleta; use + enchant_dict_add en su lugar. - enchant_dict_is_in_session is deprecated; use - enchant_dict_is_added instead. + enchant_dict_is_in_session está obsoleta; use + enchant_dict_is_added en su lugar. - enchant_broker_free and enchant_broker_free_dict are - deprecated; unset the object instead. + enchant_broker_free y enchant_broker_free_dict están + obsoletas; use unset sobre el objeto en su lugar. - The ENCHANT_MYSPELL and ENCHANT_ISPELL constants are - deprecated. + Las constantes ENCHANT_MYSPELL y ENCHANT_ISPELL están + obsoletas. @@ -94,9 +94,9 @@ function test(?A $a, $b) {} // Recommended LibXML - libxml_disable_entity_loader has been deprecated. As libxml 2.9.0 is now - required, external entity loading is guaranteed to be disabled by default, and this function is - no longer needed to protect against XXE attacks. + libxml_disable_entity_loader ha sido desaprobada. Como ahora se requiere libxml 2.9.0, + la carga de entidades externas está garantizada como deshabilitada por defecto, y esta función ya + no es necesaria para proteger contra ataques XXE. @@ -106,14 +106,14 @@ function test(?A $a, $b) {} // Recommended - The constant PGSQL_LIBPQ_VERSION_STR now has the same value as - PGSQL_LIBPQ_VERSION, and thus is deprecated. + La constante PGSQL_LIBPQ_VERSION_STR ahora tiene el mismo valor que + PGSQL_LIBPQ_VERSION, y por lo tanto está obsoleta. - Function aliases in the pgsql extension have been deprecated. - See the following list for which functions should be used instead: + Los alias de funciones en la extensión pgsql han sido desaprobados. + Consulte la siguiente lista para saber qué funciones deben usarse en su lugar: @@ -148,14 +148,14 @@ function test(?A $a, $b) {} // Recommended - Standard Library + Biblioteca estándar - Sort comparison functions that return &true; or &false; will now throw a deprecation warning, and - should be replaced with an implementation that returns an integer less than, equal to, or greater - than zero. + Las funciones de comparación para ordenamiento que devuelven &true; o &false; ahora emitirán una advertencia de obsolescencia, y + deberían ser reemplazadas por una implementación que devuelva un entero menor, igual o mayor + que cero. @@ -179,15 +179,15 @@ usort($array, fn($a, $b) => $a <=> $b); - Using an empty file as ZipArchive is deprecated. Libzip 1.6.0 does not accept empty files as - valid zip archives any longer. The existing workaround will be removed in the next version. + El uso de un archivo vacío como ZipArchive está obsoleto. Libzip 1.6.0 ya no acepta archivos vacíos como + archivos zip válidos. La solución alternativa existente será eliminada en la próxima versión. - The procedural API of Zip is deprecated. Use ZipArchive instead. - Iteration over all entries can be accomplished using ZipArchive::statIndex - and a for loop: + La API procedural de Zip está obsoleta. Use ZipArchive en su lugar. + La iteración sobre todas las entradas puede realizarse usando ZipArchive::statIndex + y un bucle for: @@ -213,23 +213,23 @@ for ($i = 0; $entry = $zip->statIndex($i); $i++) { - Reflection + Reflexión - ReflectionFunction::isDisabled is deprecated, as it is no longer - possible to create a ReflectionFunction for a disabled function. This - method now always returns &false;. + ReflectionFunction::isDisabled está obsoleto, ya que ya no es posible + crear un ReflectionFunction para una función deshabilitada. Este + método ahora siempre devuelve &false;. ReflectionParameter::getClass, - ReflectionParameter::isArray, and - ReflectionParameter::isCallable are deprecated. - ReflectionParameter::getType and the - ReflectionType APIs should be used instead. + ReflectionParameter::isArray y + ReflectionParameter::isCallable están obsoletos. + En su lugar deberían usarse ReflectionParameter::getType y las + API de ReflectionType. diff --git a/appendices/migration80/new-features.xml b/appendices/migration80/new-features.xml index b20cde5d0..05c913788 100644 --- a/appendices/migration80/new-features.xml +++ b/appendices/migration80/new-features.xml @@ -30,62 +30,61 @@ - Constructor Property Promotion + Promoción de propiedades en el constructor - Support for constructor property promotion (declaring properties in the constructor signature) - has been added. + Se ha añadido soporte para la promoción de propiedades en el constructor (declarar propiedades en la firma del constructor). - Union Types + Tipos de unión - Support for union types has been added. + Se ha añadido soporte para los tipos de unión. - Match Expression + Expresión match - Support for match expressions has been added. + Se ha añadido soporte para las expresiones match. - Nullsafe Operator + Operador nullsafe - Support for the nullsafe operator (?->) has been added. + Se ha añadido soporte para el operador nullsafe (?->). - Other new Features + Otras nuevas características - The WeakMap class has been added. + Se ha añadido la clase WeakMap. - The ValueError class has been added. + Se ha añadido la clase ValueError. - Any number of function parameters may now be replaced by a variadic argument, as long as the - types are compatible. For example, the following code is now allowed: + Cualquier número de parámetros de función ahora puede ser reemplazado por un argumento variádico, siempre que los + tipos sean compatibles. Por ejemplo, el siguiente código ahora está permitido: @@ -104,7 +103,7 @@ class B extends A { - static (as in "late static binding") can now be used as a return type: + static (como en "enlace estático en tiempo de ejecución") ahora puede ser usado como tipo de retorno: @@ -123,43 +122,43 @@ class Test { - It is now possible to fetch the class name of an object using - $object::class. The result is the same as get_class($object). + Ahora es posible obtener el nombre de la clase de un objeto usando + $object::class. El resultado es el mismo que get_class($object). - &new; and &instanceof; can now be used with arbitrary expressions, - using new (expression)(...$args) and $obj instanceof (expression). + &new; e &instanceof; ahora pueden ser usados con expresiones arbitrarias, + usando new (expression)(...$args) y $obj instanceof (expression). - Some consistency fixes to variable syntax have been applied, for example writing - Foo::BAR::$baz is now allowed. + Se han aplicado algunas correcciones de consistencia en la sintaxis de variables, por ejemplo, escribir + Foo::BAR::$baz ahora está permitido. - Added Stringable interface, which is automatically implemented if - a class defines a __toString() method. + Se ha añadido la interfaz Stringable, que se implementa automáticamente si + una clase define un método __toString(). - Traits can now define abstract private methods. - Such methods must be implemented by the class using the trait. + Los traits ahora pueden definir métodos privados abstractos. + Dichos métodos deben ser implementados por la clase que usa el trait. - throw can now be used as an expression. - That allows usages like: + throw ahora puede ser usado como una expresión. + Esto permite usos como: user ?? throw new Exception('Must have user'); - An optional trailing comma is now allowed in parameter lists. + Ahora se permite una coma final opcional en las listas de parámetros. - It is now possible to write catch (Exception) to catch an exception without storing - it in a variable. + Ahora es posible escribir catch (Exception) para capturar una excepción sin almacenarla + en una variable. - Support for mixed type has been added. + Se ha añadido soporte para el tipo mixed. - Private methods declared on a parent class no longer enforce any inheritance rules on the methods - of a child class (with the exception of final private constructors). - The following example illustrates which restrictions have been removed: + Los métodos privados declarados en una clase padre ya no imponen ninguna regla de herencia sobre los métodos + de una clase hija (con la excepción de los constructores privados finales). + El siguiente ejemplo ilustra qué restricciones han sido eliminadas: - get_resource_id has been added, which returns the same value as - (int) $resource. It provides the same functionality under a clearer API. + Se ha añadido get_resource_id, que devuelve el mismo valor que + (int) $resource. Proporciona la misma funcionalidad con una API más clara. @@ -239,20 +238,20 @@ class ChildClass extends ParentClass { - Date and Time + Fecha y hora - DateTime::createFromInterface and - DateTimeImmutable::createFromInterface have been added. + Se han añadido DateTime::createFromInterface y + DateTimeImmutable::createFromInterface. - The DateTime format specifier p has been added, which is the same as - P but returns Z rather than +00:00 - for UTC. + Se ha añadido el especificador de formato DateTime p, que es igual que + P pero devuelve Z en lugar de +00:00 + para UTC. @@ -262,8 +261,8 @@ class ChildClass extends ParentClass { DOM - DOMParentNode and DOMChildNode with - new traversal and manipulation APIs have been added. + Se han añadido DOMParentNode y DOMChildNode con + nuevas API de recorrido y manipulación. @@ -272,9 +271,9 @@ class ChildClass extends ParentClass { Filter - FILTER_VALIDATE_BOOL has been added as an alias for - FILTER_VALIDATE_BOOLEAN. The new name is preferred, as it uses the canonical - type name. + Se ha añadido FILTER_VALIDATE_BOOL como alias de + FILTER_VALIDATE_BOOLEAN. Se prefiere el nuevo nombre, ya que utiliza el nombre + de tipo canónico. @@ -282,8 +281,8 @@ class ChildClass extends ParentClass { Enchant - enchant_dict_add, enchant_dict_is_added, and - LIBENCHANT_VERSION have been added. + Se han añadido enchant_dict_add, enchant_dict_is_added y + LIBENCHANT_VERSION. @@ -291,9 +290,9 @@ class ChildClass extends ParentClass { FPM - Added a new option pm.status_listen that allows getting the status from - different endpoint (e.g. port or UDS file) which is useful for getting the status when all - children are busy with serving long running requests. + Se ha añadido una nueva opción pm.status_listen que permite obtener el estado desde + un endpoint diferente (por ejemplo, un puerto o archivo UDS), lo cual es útil para obtener el estado cuando todos + los procesos hijos están ocupados sirviendo peticiones de larga duración. @@ -301,19 +300,18 @@ class ChildClass extends ParentClass { Hash - HashContext objects can now be serialized. + Los objetos HashContext ahora pueden ser serializados. - Internationalization Functions + Funciones de internacionalización - The IntlDateFormatter::RELATIVE_FULL, + Se han añadido las constantes IntlDateFormatter::RELATIVE_FULL, IntlDateFormatter::RELATIVE_LONG, - IntlDateFormatter::RELATIVE_MEDIUM, and - IntlDateFormatter::RELATIVE_SHORT - constants have been added. + IntlDateFormatter::RELATIVE_MEDIUM y + IntlDateFormatter::RELATIVE_SHORT. @@ -321,17 +319,17 @@ class ChildClass extends ParentClass { LDAP - ldap_count_references has been added, which returns the number - of reference messages in a search result. + Se ha añadido ldap_count_references, que devuelve el número + de mensajes de referencia en un resultado de búsqueda. OPcache - If the opcache.record_warnings ini setting is - enabled, OPcache will record compile-time warnings and replay them on the next include, even if - it is served from cache. + Si la directiva ini opcache.record_warnings está + habilitada, OPcache registrará las advertencias en tiempo de compilación y las reproducirá en el siguiente include, incluso si + se sirve desde la caché. @@ -339,53 +337,53 @@ class ChildClass extends ParentClass { OpenSSL - Added Cryptographic Message Syntax (CMS) (RFC 5652) - support composed of functions for encryption, decryption, signing, verifying and reading. The API - is similar to the API for PKCS #7 functions with an addition of new encoding constants: + Se ha añadido soporte para Cryptographic Message Syntax (CMS) (RFC 5652) + compuesto por funciones para cifrado, descifrado, firma, verificación y lectura. La API + es similar a la API de las funciones PKCS #7 con la adición de nuevas constantes de codificación: OPENSSL_ENCODING_DER, OPENSSL_ENCODING_SMIME - and OPENSSL_ENCODING_PEM: + y OPENSSL_ENCODING_PEM: - openssl_cms_encrypt encrypts the message in the file with the certificates - and outputs the result to the supplied file. + openssl_cms_encrypt cifra el mensaje en el archivo con los certificados + y envía el resultado al archivo proporcionado. - openssl_cms_decrypt that decrypts the S/MIME message in the file and outputs - the results to the supplied file. + openssl_cms_decrypt descifra el mensaje S/MIME en el archivo y envía + los resultados al archivo proporcionado. - openssl_cms_read that exports the CMS file to an array of PEM certificates. + openssl_cms_read exporta el archivo CMS a un array de certificados PEM. - openssl_cms_sign that signs the MIME message in the file with a cert and key - and output the result to the supplied file. + openssl_cms_sign firma el mensaje MIME en el archivo con un certificado y una clave + y envía el resultado al archivo proporcionado. - openssl_cms_verify that verifies that the data block is intact, the signer - is who they say they are, and returns the certs of the signers. + openssl_cms_verify verifica que el bloque de datos está intacto, que el firmante + es quien dice ser, y devuelve los certificados de los firmantes. - Regular Expressions (Perl-Compatible) + Expresiones regulares (compatibles con Perl) - preg_last_error_msg has been added, which returns a human-readable message for the last - PCRE error. It complements preg_last_error, which returns an integer enum value - instead. + Se ha añadido preg_last_error_msg, que devuelve un mensaje legible para el último + error PCRE. Complementa a preg_last_error, que devuelve un valor entero de enumeración + en su lugar. - Reflection + Reflexión - The following methods can now return information about default values of - parameters of internal functions: + Los siguientes métodos ahora pueden devolver información sobre los valores predeterminados de + los parámetros de las funciones internas: @@ -403,55 +401,55 @@ class ChildClass extends ParentClass { SQLite3 - SQLite3::setAuthorizer and respective class constants have been added - to set a userland callback that will be used to authorize or not an action on the database. + Se han añadido SQLite3::setAuthorizer y las constantes de clase correspondientes + para establecer una función de retorno de llamada de usuario que se utilizará para autorizar o no una acción en la base de datos. - Standard Library + Biblioteca estándar - str_contains, str_starts_with and - str_ends_with have been added, which check whether haystack contains, - starts with or ends with needle, respectively. + Se han añadido str_contains, str_starts_with y + str_ends_with, que comprueban si haystack contiene, + comienza con o termina con needle, respectivamente. - fdiv has been added, which performs a floating-point division under IEEE 754 semantics. - Division by zero is considered well-defined and will return one of Inf, - -Inf or NaN. + Se ha añadido fdiv, que realiza una división de punto flotante según la semántica IEEE 754. + La división por cero se considera bien definida y devolverá uno de Inf, + -Inf o NaN. - get_debug_type has been added, which returns a type useful for error messages. Unlike - gettype, it uses canonical type names, returns class names for objects, and - indicates the resource type for resources. + Se ha añadido get_debug_type, que devuelve un tipo útil para mensajes de error. A diferencia de + gettype, utiliza nombres de tipo canónicos, devuelve nombres de clase para objetos e + indica el tipo de recurso para los recursos. - printf and friends now support the %h and - %H format specifiers. These are the same as %g and - %G, but always use "." as the decimal separator, rather - than determining it through the LC_NUMERIC locale. + printf y funciones similares ahora soportan los especificadores de formato %h y + %H. Son iguales que %g y + %G, pero siempre usan "." como separador decimal, en lugar + de determinarlo a través de la configuración regional LC_NUMERIC. - printf and friends now support using "*" as width or - precision, in which case the width/precision is passed as an argument to printf. This also allows - using precision -1 with %g, %G, - %h and %H. For example, the following code can be used to - reproduce PHP's default floating point formatting: + printf y funciones similares ahora soportan el uso de "*" como ancho o + precisión, en cuyo caso el ancho/precisión se pasa como argumento a printf. Esto también permite + usar precisión -1 con %g, %G, + %h y %H. Por ejemplo, el siguiente código puede usarse para + reproducir el formato predeterminado de punto flotante de PHP: @@ -466,9 +464,9 @@ printf("%.*H", (int) ini_get("serialize_precision"), $float); - proc_open now supports pseudo-terminal (PTY) descriptors. The following - attaches stdin, stdout and stderr to the - same PTY: + proc_open ahora soporta descriptores de pseudo-terminal (PTY). Lo siguiente + conecta stdin, stdout y stderr al + mismo PTY: @@ -482,8 +480,8 @@ $proc = proc_open($command, [['pty'], ['pty'], ['pty']], $pipes); - proc_open now supports socket pair descriptors. The following attaches a - distinct socket pair to stdin, stdout and + proc_open ahora soporta descriptores de pares de sockets. Lo siguiente conecta un + par de sockets distinto a stdin, stdout y stderr: @@ -496,22 +494,22 @@ $proc = proc_open($command, [['socket'], ['socket'], ['socket']], $pipes); - Unlike pipes, sockets do not suffer from blocking I/O issues on Windows. However, not all - programs may work correctly with stdio sockets. + A diferencia de las tuberías, los sockets no sufren problemas de E/S bloqueante en Windows. Sin embargo, no todos + los programas pueden funcionar correctamente con sockets stdio. - Sorting functions are now stable, which means that equal-comparing elements will retain their - original order. + Las funciones de ordenamiento ahora son estables, lo que significa que los elementos que se comparan como iguales conservarán su + orden original. - array_diff, array_intersect and their variations can - now be used with a single array as argument. This means that usages like the following are now - possible: + array_diff, array_intersect y sus variaciones ahora pueden + ser usadas con un solo array como argumento. Esto significa que usos como los siguientes ahora son + posibles: @@ -528,8 +526,8 @@ array_intersect(...$arrays); - The flag parameter of ob_implicit_flush was changed - to accept a bool rather than an int. + El parámetro flag de ob_implicit_flush fue cambiado + para aceptar un bool en lugar de un int. @@ -539,8 +537,8 @@ array_intersect(...$arrays); Tokenizer - PhpToken adds an object-based interface to the tokenizer. It provides a - more uniform and ergonomic representation, while being more memory efficient and faster. + PhpToken añade una interfaz basada en objetos al tokenizer. Proporciona una + representación más uniforme y ergonómica, siendo al mismo tiempo más eficiente en memoria y más rápida. @@ -551,68 +549,68 @@ array_intersect(...$arrays); - The Zip extension has been updated to version 1.19.1. + La extensión Zip ha sido actualizada a la versión 1.19.1. - New ZipArchive::setMtimeName and - ZipArchive::setMtimeIndex to set the modification time of an entry. + Nuevos ZipArchive::setMtimeName y + ZipArchive::setMtimeIndex para establecer la hora de modificación de una entrada. - New ZipArchive::registerProgressCallback to provide updates during archive close. + Nuevo ZipArchive::registerProgressCallback para proporcionar actualizaciones durante el cierre del archivo. - New ZipArchive::registerCancelCallback to allow cancellation during archive - close. + Nuevo ZipArchive::registerCancelCallback para permitir la cancelación durante el cierre + del archivo. - New ZipArchive::replaceFile to replace an entry content. + Nuevo ZipArchive::replaceFile para reemplazar el contenido de una entrada. - New ZipArchive::isCompressionMethodSupported to check optional compression - features. + Nuevo ZipArchive::isCompressionMethodSupported para verificar las características opcionales de + compresión. - New ZipArchive::isEncryptionMethodSupported to check optional encryption - features. + Nuevo ZipArchive::isEncryptionMethodSupported para verificar las características opcionales de + cifrado. - The ZipArchive::lastId property to get the index value of - the last added entry has been added. + Se ha añadido la propiedad ZipArchive::lastId para obtener el valor del índice + de la última entrada añadida. - Errors can now be checked after an archive has been closed using the - ZipArchive::status and - ZipArchive::statusSys properties, or the - ZipArchive::getStatusString method. + Ahora se pueden verificar los errores después de que un archivo ha sido cerrado usando las propiedades + ZipArchive::status y + ZipArchive::statusSys, o el método + ZipArchive::getStatusString. - The 'remove_path' option of ZipArchive::addGlob and - ZipArchive::addPattern is now treated as an arbitrary string prefix (for - consistency with the 'add_path' option), whereas formerly it was treated as a - directory name. + La opción 'remove_path' de ZipArchive::addGlob y + ZipArchive::addPattern ahora se trata como un prefijo de cadena arbitrario (para + mantener la consistencia con la opción 'add_path'), mientras que anteriormente se trataba como un + nombre de directorio. - Optional compression / encryption features are now listed in phpinfo. + Las características opcionales de compresión / cifrado ahora se listan en phpinfo. diff --git a/appendices/migration83/other-changes.xml b/appendices/migration83/other-changes.xml index 6a248e009..69a31fc50 100644 --- a/appendices/migration83/other-changes.xml +++ b/appendices/migration83/other-changes.xml @@ -439,7 +439,6 @@ bool ahora emite advertencias. Esto se debe a que actualmente no tiene ningún efecto, pero se comportará como $bool += 1 en el futuro. - Using the increment/decrement diff --git a/language/fibers.xml b/language/fibers.xml index 73998f2f1..b4769d5f6 100644 --- a/language/fibers.xml +++ b/language/fibers.xml @@ -33,10 +33,7 @@ objeto Iterator. - Una vez suspendido, la ejecución del Fiber puede reanudarse con cualquier valor utilizando Fiber::resume o lanzando una excepción en el Fiber utilizando Fiber::throw. El valor se devuelve (o la excepción se lanza) desde Fiber::suspend - Once suspended, execution of the fiber may be resumed with any value using Fiber::resume - or by throwing an exception into the fiber using Fiber::throw. The value is returned - (or exception thrown) from Fiber::suspend. + Una vez suspendido, la ejecución del Fiber puede reanudarse con cualquier valor utilizando Fiber::resume o lanzando una excepción en el Fiber utilizando Fiber::throw. El valor se devuelve (o la excepción se lanza) desde Fiber::suspend. diff --git a/language/predefined/exception/gettraceasstring.xml b/language/predefined/exception/gettraceasstring.xml index cf9ee71b7..bcaf0d63a 100644 --- a/language/predefined/exception/gettraceasstring.xml +++ b/language/predefined/exception/gettraceasstring.xml @@ -26,7 +26,7 @@ &reftitle.returnvalues; - Returns the Exception stack trace as a string. + Devuelve la traza de la pila de la excepción como una cadena de caracteres. diff --git a/language/variables.xml b/language/variables.xml index d1d05c93e..d80e7e532 100644 --- a/language/variables.xml +++ b/language/variables.xml @@ -1142,12 +1142,12 @@ $varname.ext; /* nombre de variable inválido */ también el capítulo sobre Tipos. - HTTP being a text protocol, most, if not all, content that comes in - Superglobal arrays, - like $_POST and $_GET will remain - as strings. PHP will not try to convert values to a specific type. - In the example below, $_GET["var1"] will contain the - string "null" and $_GET["var2"], the string "123". + Dado que HTTP es un protocolo de texto, la mayoría, si no todo, el contenido que llega en + arrays superglobales, + como $_POST y $_GET, permanecerá + como cadenas de texto. PHP no intentará convertir los valores a un tipo específico. + En el ejemplo siguiente, $_GET["var1"] contendrá la + cadena "null" y $_GET["var2"], la cadena "123". apc.entries_hint 512 * apc.shm_size INI_SYSTEM - Prior to APcu 5.1.25, the default was 4096 + Anteriormente a APCu 5.1.25, el valor predeterminado era 4096 apc.ttl diff --git a/reference/datetime/dateinterval.xml b/reference/datetime/dateinterval.xml index 5a5f1f1c4..a510687d0 100644 --- a/reference/datetime/dateinterval.xml +++ b/reference/datetime/dateinterval.xml @@ -197,11 +197,11 @@ days - If the DateInterval object was created by - DateTimeImmutable::diff or - DateTime::diff, then this is the - total number of full days between the start and end dates. Otherwise, - days will be &false;. + Si el objeto DateInterval fue creado por + DateTimeImmutable::diff o + DateTime::diff, entonces este es el + número total de días completos entre las fechas de inicio y fin. En caso contrario, + days será &false;. diff --git a/reference/fann/functions/fann-create-shortcut.xml b/reference/fann/functions/fann-create-shortcut.xml index e212f156d..e2515d85c 100644 --- a/reference/fann/functions/fann-create-shortcut.xml +++ b/reference/fann/functions/fann-create-shortcut.xml @@ -18,7 +18,7 @@ intnum_neuronsN - Creates a standard backpropagation neural network, which is not fully connected and which also has shortcut connections. + Crea una red neuronal de retropropagación estándar que no está completamente conectada y que también posee conexiones de atajo. Las conexiones de atajo son conexiones que saltan capas. Una red completamente conectada con conexiones de atajo es una red diff --git a/reference/fann/functions/fann-read-train-from-file.xml b/reference/fann/functions/fann-read-train-from-file.xml index 92b19bde3..817144fd9 100644 --- a/reference/fann/functions/fann-read-train-from-file.xml +++ b/reference/fann/functions/fann-read-train-from-file.xml @@ -68,7 +68,7 @@ if ($train_data) { ?> ]]> - Contents of xor.data + Contenido de xor.data setId('test'); &example.outputs.similar; Requisitos en Linux y Unix - The user invoking the PHP executable or SAPI must specify the DB2 instance - before accessing these functions. You can set the name of the DB2 instance - in &php.ini; using the ibm_db2.instance_name - configuration option, or you can source the DB2 instance profile before - invoking the PHP executable. + El usuario que invoca el ejecutable de PHP o el SAPI debe especificar la instancia + de DB2 antes de acceder a estas funciones. Se puede establecer el nombre de la instancia + de DB2 en &php.ini; utilizando la opción de configuración + ibm_db2.instance_name, o se puede cargar el perfil de la instancia + de DB2 antes de invocar el ejecutable de PHP. - If you created a DB2 instance named db2inst1 in - /home/db2inst1/, for example, you can add the - following line to &php.ini;: + Si se ha creado una instancia de DB2 llamada db2inst1 en + /home/db2inst1/, por ejemplo, se puede añadir la + siguiente línea a &php.ini;: - If you do not set this option in &php.ini;, you must issue the - following command to modify your environment variables to enable access to + Si no se establece esta opción en &php.ini;, se debe ejecutar el + siguiente comando para modificar las variables de entorno y habilitar el acceso a DB2: - To enable your PHP-enabled Web server to access these functions, you must - either set the ibm_db2.instance_name configuration - option in &php.ini;, or source the DB2 instance environment in your Web - server start script (typically /etc/init.d/httpd or + Para permitir que el servidor web con PHP acceda a estas funciones, se debe + establecer la opción de configuración ibm_db2.instance_name + en &php.ini;, o cargar el entorno de la instancia de DB2 en el script de inicio + del servidor web (típicamente /etc/init.d/httpd o /etc/init.d/apache). diff --git a/reference/mongodb/mongodb/driver/readpreference/gethedge.xml b/reference/mongodb/mongodb/driver/readpreference/gethedge.xml index 5d9b5707c..d532d845d 100644 --- a/reference/mongodb/mongodb/driver/readpreference/gethedge.xml +++ b/reference/mongodb/mongodb/driver/readpreference/gethedge.xml @@ -24,7 +24,6 @@ &reftitle.returnvalues; Devuelve la opción "hedge" del ReadPreference. - Returns the ReadPreference's "hedge" option. diff --git a/reference/oauth/functions/oauth-urlencode.xml b/reference/oauth/functions/oauth-urlencode.xml index 830f025bc..4f80ffac6 100644 --- a/reference/oauth/functions/oauth-urlencode.xml +++ b/reference/oauth/functions/oauth-urlencode.xml @@ -35,7 +35,7 @@ &reftitle.returnvalues; - Returns an RFC 3986 encoded string. + Devuelve una cadena codificada según RFC 3986. diff --git a/reference/rrd/rrdupdater/update.xml b/reference/rrd/rrdupdater/update.xml index 73ecd515f..cf8188309 100644 --- a/reference/rrd/rrdupdater/update.xml +++ b/reference/rrd/rrdupdater/update.xml @@ -56,7 +56,7 @@ &reftitle.errors; - Throws a Exception on error. + Lanza una Exception en caso de error. diff --git a/reference/snmp/snmp/geterror.xml b/reference/snmp/snmp/geterror.xml index 70e8c643b..53cb6758b 100644 --- a/reference/snmp/snmp/geterror.xml +++ b/reference/snmp/snmp/geterror.xml @@ -27,7 +27,6 @@ &reftitle.returnvalues; - String describing error from last SNMP request. String que describe el error de la última solicitud SNMP. diff --git a/reference/sodium/functions/sodium-crypto-core-ristretto255-from-hash.xml b/reference/sodium/functions/sodium-crypto-core-ristretto255-from-hash.xml index 301b73524..72f66cd30 100644 --- a/reference/sodium/functions/sodium-crypto-core-ristretto255-from-hash.xml +++ b/reference/sodium/functions/sodium-crypto-core-ristretto255-from-hash.xml @@ -39,7 +39,6 @@ &reftitle.returnvalues; Devuelve una &string; aleatoria de 32 bytes. - Returns a 32-byte random &string;. diff --git a/reference/spl/callbackfilteriterator/construct.xml b/reference/spl/callbackfilteriterator/construct.xml index 545dccea2..6b0a1f77b 100644 --- a/reference/spl/callbackfilteriterator/construct.xml +++ b/reference/spl/callbackfilteriterator/construct.xml @@ -16,8 +16,7 @@ Crea un iterador filtrado usando callback (llamada de retorno) - Creates a filtered iterator using the callback para determinar - que elementos van a ser aceptados o rechazados. + para determinar qué elementos van a ser aceptados o rechazados. diff --git a/reference/spl/directoryiterator/next.xml b/reference/spl/directoryiterator/next.xml index 808175de0..31b225738 100644 --- a/reference/spl/directoryiterator/next.xml +++ b/reference/spl/directoryiterator/next.xml @@ -36,7 +36,7 @@ Ejemplo de <methodname>DirectoryIterator::next</methodname> - List the contents of a directory using a while loop. + Lista el contenido de un directorio usando un bucle while. RegexIterator::SPLIT - Returns the split values for the current entry (see preg_split). + Devuelve los valores divididos de la entrada actual (véase preg_split). @@ -173,7 +173,7 @@ RegexIterator::INVERT_MATCH - Inverts the return value of RegexIterator::accept. + Invierte el valor de retorno de RegexIterator::accept. diff --git a/reference/spl/regexiterator/setflags.xml b/reference/spl/regexiterator/setflags.xml index 2870d5b1c..c5c6ed3bc 100644 --- a/reference/spl/regexiterator/setflags.xml +++ b/reference/spl/regexiterator/setflags.xml @@ -26,8 +26,7 @@ flags - Las flags a ser establecidas, - The flags to set, un bitmask de constantes de la clase. + Las flags a establecer, un bitmask de constantes de la clase. Las flags disponibles se enumeran a continuación. El verdadero diff --git a/reference/spl/splfileobject/fpassthru.xml b/reference/spl/splfileobject/fpassthru.xml index 87914d713..206106274 100644 --- a/reference/spl/splfileobject/fpassthru.xml +++ b/reference/spl/splfileobject/fpassthru.xml @@ -19,8 +19,7 @@ Puede que se necesite llamar a SplFileObject::rewind - You may need to call SplFileObject::rewind para reiniciar el - puntero del fichero al inicio de el fichero si se tiene datos escritos en el fichero. + para reiniciar el puntero del fichero al inicio del fichero si se tienen datos escritos en el fichero. diff --git a/reference/spl/splfixedarray.xml b/reference/spl/splfixedarray.xml index 3d74fcc4e..dad227e1c 100644 --- a/reference/spl/splfixedarray.xml +++ b/reference/spl/splfixedarray.xml @@ -71,24 +71,24 @@ 8.2.0 - The SplFixedArray::__serialize and + Se han añadido los métodos mágicos SplFixedArray::__serialize y SplFixedArray::__unserialize - magic methods have been added to SplFixedArray. + a SplFixedArray. 8.1.0 - SplFixedArray implements - JsonSerializable now. + SplFixedArray ahora implementa + JsonSerializable. 8.0.0 - SplFixedArray implements - IteratorAggregate now. - Previously, Iterator was implemented instead. + SplFixedArray ahora implementa + IteratorAggregate. + Anteriormente, se implementaba Iterator en su lugar. diff --git a/reference/spl/splminheap/compare.xml b/reference/spl/splminheap/compare.xml index 90a33d727..ce77d981b 100644 --- a/reference/spl/splminheap/compare.xml +++ b/reference/spl/splminheap/compare.xml @@ -52,7 +52,7 @@ No es recomendable tener múltiples elementos con el mismo valor en el montón. - Having multiple elements with the same value in a Heap is not recommended. Estos terminarán en una por sición arbitraria relativa. + Estos terminarán en una posición arbitraria relativa. diff --git a/reference/tidy/tidy/parsefile.xml b/reference/tidy/tidy/parsefile.xml index 6b9b9a2de..b1057e419 100644 --- a/reference/tidy/tidy/parsefile.xml +++ b/reference/tidy/tidy/parsefile.xml @@ -92,10 +92,10 @@ &reftitle.returnvalues; - tidy::parseFile returns &true; on success. - tidy_parse_file returns a new tidy - instance on success. - Both, the method and the function return &false; on failure. + tidy::parseFile devuelve &true; en caso de éxito. + tidy_parse_file devuelve una nueva instancia de tidy + en caso de éxito. + Tanto el método como la función devuelven &false; en caso de error. diff --git a/reference/wincache/functions/wincache-ucache-cas.xml b/reference/wincache/functions/wincache-ucache-cas.xml index 2451488de..793ae107e 100644 --- a/reference/wincache/functions/wincache-ucache-cas.xml +++ b/reference/wincache/functions/wincache-ucache-cas.xml @@ -50,8 +50,7 @@ new_value - El nuevo valor que se asigna a una variable - New value which will get assigned to variable indicado por la key si se + El nuevo valor que se asignará a la variable indicada por la key si se encuentra una coincidencia. El valor debe ser de tipo long, en caso contrario la función devolverá &false;. diff --git a/reference/xmldiff/xmldiff-file/diff.xml b/reference/xmldiff/xmldiff-file/diff.xml index 18ed9ee03..e5d2c4650 100644 --- a/reference/xmldiff/xmldiff-file/diff.xml +++ b/reference/xmldiff/xmldiff-file/diff.xml @@ -28,7 +28,7 @@ from - Path to the source document. + Ruta al documento fuente. diff --git a/reference/xmlreader/xmlreader/readinnerxml.xml b/reference/xmlreader/xmlreader/readinnerxml.xml index 74a03e746..55b443f99 100644 --- a/reference/xmlreader/xmlreader/readinnerxml.xml +++ b/reference/xmlreader/xmlreader/readinnerxml.xml @@ -26,7 +26,7 @@ &reftitle.returnvalues; - Returns the contents of the current node as a string. Empty string on failure. + Devuelve el contenido del nodo actual como una cadena de caracteres. Devuelve una cadena vacía en caso de error. diff --git a/reference/xmlrpc/functions/xmlrpc-set-type.xml b/reference/xmlrpc/functions/xmlrpc-set-type.xml index d8c38de5f..9c0fd4593 100644 --- a/reference/xmlrpc/functions/xmlrpc-set-type.xml +++ b/reference/xmlrpc/functions/xmlrpc-set-type.xml @@ -27,7 +27,7 @@ value - Value to set the type + Valor para establecer el tipo @@ -47,14 +47,14 @@ &reftitle.returnvalues; &return.success; - If successful, value is converted to an object. + Si tiene éxito, value se convierte en un objeto. &reftitle.errors; - Issues E_WARNING with type unsupported by XMLRPC. + Emite un E_WARNING con un tipo no soportado por XMLRPC. diff --git a/reference/zip/constants.xml b/reference/zip/constants.xml index 6576d09ca..e18016a86 100644 --- a/reference/zip/constants.xml +++ b/reference/zip/constants.xml @@ -305,8 +305,8 @@ - Open the file when added instead of waiting for archive to be closed. - Be aware of file descriptors consumption. + Abre el archivo cuando se añade en lugar de esperar a que se cierre el archivo comprimido. + Tenga en cuenta el consumo de descriptores de archivo. Disponible a partir de PHP 8.3.0 y PECL zip 1.22.1. diff --git a/reference/zmq/zmq.xml b/reference/zmq/zmq.xml index 2f85afb83..05b99023f 100644 --- a/reference/zmq/zmq.xml +++ b/reference/zmq/zmq.xml @@ -413,8 +413,8 @@ ZMQ::SOCKET_XPUB - Similar to SOCKET_PUB, except you can receive subscriptions as messages. - The subscription message is 0 (unsubscribe) or 1 (subscribe) followed by the topic. + Similar a SOCKET_PUB, excepto que se pueden recibir suscripciones como mensajes. + El mensaje de suscripción es 0 (cancelar suscripción) o 1 (suscribirse) seguido del tema. diff --git a/reference/zmq/zmqdevice/setidlecallback.xml b/reference/zmq/zmqdevice/setidlecallback.xml index 7f9c64e0e..02ede1164 100644 --- a/reference/zmq/zmqdevice/setidlecallback.xml +++ b/reference/zmq/zmqdevice/setidlecallback.xml @@ -18,12 +18,6 @@ mixeduser_data - Sets the idle callback function. If idle timeout is defined the idle callback function - shall be called if the internal poll loop times out without events. If the callback function - returns false or a value that evaluates to false the device is stopped. - - The callback function signature is callback (mixed $user_data). - Establece la función de retrollamada de inactividad. Si el tiempo de espera está definido, la función de retrollamada de inactividad será invocada si el bucle de sondeo interno expira sin eventos. Si la función de retrollamada devuelve false o un valor que se evalúa como false, el dispositivo se detendrá. diff --git a/reference/zmq/zmqpoll/clear.xml b/reference/zmq/zmqpoll/clear.xml index 128d610fb..d6defee20 100644 --- a/reference/zmq/zmqpoll/clear.xml +++ b/reference/zmq/zmqpoll/clear.xml @@ -28,7 +28,7 @@ &reftitle.returnvalues; - Returns the current object. + Devuelve el objeto actual. diff --git a/reference/zmq/zmqsocket/construct.xml b/reference/zmq/zmqsocket/construct.xml index 48af5f013..51bfe1b05 100644 --- a/reference/zmq/zmqsocket/construct.xml +++ b/reference/zmq/zmqsocket/construct.xml @@ -85,7 +85,7 @@ Un ejemplo de <function>ZMQSocket</function> - Utilizar una callback the bind/connect socket + Utilizar una callback para bind/connect del socket