diff --git a/reference/calendar/functions/cal-days-in-month.xml b/reference/calendar/functions/cal-days-in-month.xml index af3daaa7b..35f62dacf 100644 --- a/reference/calendar/functions/cal-days-in-month.xml +++ b/reference/calendar/functions/cal-days-in-month.xml @@ -1,6 +1,6 @@ - + @@ -62,6 +62,42 @@ + + &reftitle.errors; + + Lanza una ValueError si + calendar no es un ID de calendario válido, si + month o year está fuera del + rango admitido, o si la fecha no es válida en el calendario dado. + + + + + &reftitle.changelog; + + + + + &Version; + &Description; + + + + + 8.0.0 + + Ahora lanza una ValueError si + calendar no es un ID de calendario válido o si + la fecha no es válida. + Anteriormente, se emitía un E_WARNING y se + devolvía &false;. + + + + + + + &reftitle.examples; diff --git a/reference/calendar/functions/cal-from-jd.xml b/reference/calendar/functions/cal-from-jd.xml index 07e39ca87..a0ad5a00d 100644 --- a/reference/calendar/functions/cal-from-jd.xml +++ b/reference/calendar/functions/cal-from-jd.xml @@ -1,6 +1,6 @@ - + @@ -63,6 +63,39 @@ + + &reftitle.errors; + + Lanza una ValueError si + calendar no es un ID de calendario válido. + + + + + &reftitle.changelog; + + + + + &Version; + &Description; + + + + + 8.0.0 + + Ahora lanza una ValueError si + calendar no es un ID de calendario válido. + Anteriormente, se emitía un E_WARNING y se + devolvía &false;. + + + + + + + &reftitle.examples; diff --git a/reference/calendar/functions/cal-info.xml b/reference/calendar/functions/cal-info.xml index 8d01dcbf1..083a610d5 100644 --- a/reference/calendar/functions/cal-info.xml +++ b/reference/calendar/functions/cal-info.xml @@ -1,6 +1,6 @@ - + @@ -76,6 +76,40 @@ + + &reftitle.errors; + + Lanza una ValueError si + calendar no es ni -1 ni un ID de + calendario válido. + + + + + &reftitle.changelog; + + + + + &Version; + &Description; + + + + + 8.0.0 + + Ahora lanza una ValueError si + calendar no es un ID de calendario válido. + Anteriormente, se emitía un E_WARNING y se + devolvía &false;. + + + + + + + &reftitle.examples; diff --git a/reference/calendar/functions/cal-to-jd.xml b/reference/calendar/functions/cal-to-jd.xml index fa23bf3e3..a4c78bc81 100644 --- a/reference/calendar/functions/cal-to-jd.xml +++ b/reference/calendar/functions/cal-to-jd.xml @@ -1,6 +1,6 @@ - + cal_to_jd @@ -78,6 +78,43 @@ + + &reftitle.errors; + + Lanza una ValueError si + calendar no es un ID de calendario válido, si + month es menor que 1, o si + month, day o + year excede el rango admitido de 32 bits. Las demás + fechas no válidas devuelven 0. + + + + + &reftitle.changelog; + + + + + &Version; + &Description; + + + + + 8.0.0 + + Ahora lanza una ValueError si + calendar no es un ID de calendario válido. + Anteriormente, se emitía un E_WARNING y se + devolvía &false;. + + + + + + + &reftitle.seealso; diff --git a/reference/calendar/functions/jdtojewish.xml b/reference/calendar/functions/jdtojewish.xml index 34647b3e5..75c04f1c7 100644 --- a/reference/calendar/functions/jdtojewish.xml +++ b/reference/calendar/functions/jdtojewish.xml @@ -1,6 +1,6 @@ - + @@ -65,6 +65,41 @@ + + &reftitle.errors; + + Lanza una ValueError si + hebrew es &true; y el año no está entre + 1 y 9999. + + + + + &reftitle.changelog; + + + + + &Version; + &Description; + + + + + 8.0.0 + + Ahora lanza una ValueError si + el año está fuera de rango cuando hebrew es + &true;. + Anteriormente, se emitía un E_WARNING y se + devolvía &false;. + + + + + + + &reftitle.examples; diff --git a/reference/calendar/functions/jewishtojd.xml b/reference/calendar/functions/jewishtojd.xml index 3af8c738e..741df3e14 100644 --- a/reference/calendar/functions/jewishtojd.xml +++ b/reference/calendar/functions/jewishtojd.xml @@ -1,6 +1,6 @@ - + @@ -72,6 +72,14 @@ + + &reftitle.errors; + + Lanza una ValueError si + year no cabe en un entero de 32 bits. + + + &reftitle.seealso; diff --git a/reference/calendar/functions/unixtojd.xml b/reference/calendar/functions/unixtojd.xml index 19e14c057..d0273d8aa 100644 --- a/reference/calendar/functions/unixtojd.xml +++ b/reference/calendar/functions/unixtojd.xml @@ -1,6 +1,6 @@ - + @@ -46,6 +46,14 @@ + + &reftitle.errors; + + Lanza una ValueError si + timestamp es negativo. + + + &reftitle.changelog; @@ -57,6 +65,14 @@ + + 8.0.0 + + Ahora lanza una ValueError si + timestamp es negativo. Anteriormente, se + devolvía &false;. + + 8.0.0 diff --git a/reference/gmp/functions/gmp-clrbit.xml b/reference/gmp/functions/gmp-clrbit.xml index 9eaf158b7..6f2580e2a 100644 --- a/reference/gmp/functions/gmp-clrbit.xml +++ b/reference/gmp/functions/gmp-clrbit.xml @@ -1,6 +1,6 @@ - + @@ -54,6 +54,16 @@ + + &reftitle.errors; + + Lanza una ValueError si index es negativo o, a partir de PHP 8.5.0, demasiado grande. + + + Antes de PHP 8.0.0, se emitía un E_WARNING en su lugar. + + + &reftitle.examples; diff --git a/reference/gmp/functions/gmp-fact.xml b/reference/gmp/functions/gmp-fact.xml index 3a6d1fd6e..e856e9476 100644 --- a/reference/gmp/functions/gmp-fact.xml +++ b/reference/gmp/functions/gmp-fact.xml @@ -1,6 +1,6 @@ - + @@ -43,6 +43,16 @@ + + &reftitle.errors; + + Lanza una ValueError si num es negativo. + + + Antes de PHP 8.0.0, se emitía un E_WARNING en su lugar. + + + &reftitle.examples; diff --git a/reference/gmp/functions/gmp-pow.xml b/reference/gmp/functions/gmp-pow.xml index 5856bb565..1ebe6ea13 100644 --- a/reference/gmp/functions/gmp-pow.xml +++ b/reference/gmp/functions/gmp-pow.xml @@ -1,6 +1,6 @@ - + @@ -53,6 +53,16 @@ + + &reftitle.errors; + + Lanza una ValueError si exponent es negativo. + + + Antes de PHP 8.0.0, se emitía un E_WARNING en su lugar. + + + &reftitle.examples; @@ -65,8 +75,6 @@ $pow1 = gmp_pow("2", 31); echo gmp_strval($pow1) . "\n"; $pow2 = gmp_pow("0", 0); echo gmp_strval($pow2) . "\n"; -$pow3 = gmp_pow("2", -1); // exponente negativo, genera peligro -echo gmp_strval($pow3) . "\n"; ?> ]]> diff --git a/reference/gmp/functions/gmp-powm.xml b/reference/gmp/functions/gmp-powm.xml index a714b508c..e0affd857 100644 --- a/reference/gmp/functions/gmp-powm.xml +++ b/reference/gmp/functions/gmp-powm.xml @@ -1,6 +1,6 @@ - + @@ -16,11 +16,10 @@ GMPintstringexponent GMPintstringmodulus - + Calcula la (num elevada a la potencia - exponent) con modulo modulus. Si - exponent es negativo, el resultado es indefinido. - + exponent) con modulo modulus. + @@ -66,6 +65,20 @@ + + &reftitle.errors; + + Lanza una ValueError si exponent es negativo. + + + Lanza una DivisionByZeroError si modulus + es 0. + + + Antes de PHP 8.0.0, se emitía un E_WARNING en su lugar. + + + &reftitle.examples; diff --git a/reference/gmp/functions/gmp-root.xml b/reference/gmp/functions/gmp-root.xml index 0c62d96a0..50598ec40 100644 --- a/reference/gmp/functions/gmp-root.xml +++ b/reference/gmp/functions/gmp-root.xml @@ -1,6 +1,6 @@ - + @@ -49,6 +49,17 @@ El componente entero de la raíz resultante, como número GMP. + + + &reftitle.errors; + + Lanza una ValueError si nth es menor que 1, + o si nth es par y num es negativo. + + + Antes de PHP 8.0.0, se emitía un E_WARNING en su lugar. + + - + @@ -51,6 +51,17 @@ GMP. + + + &reftitle.errors; + + Lanza una ValueError si nth es menor que 1, + o si nth es par y num es negativo. + + + Antes de PHP 8.0.0, se emitía un E_WARNING en su lugar. + + - + @@ -55,6 +55,16 @@ + + &reftitle.errors; + + Lanza una ValueError si start es negativo o, a partir de PHP 8.5.0, demasiado grande. + + + Antes de PHP 8.0.0, se emitía un E_WARNING en su lugar. + + + &reftitle.examples; diff --git a/reference/gmp/functions/gmp-scan1.xml b/reference/gmp/functions/gmp-scan1.xml index c0221bbb9..1da10806e 100644 --- a/reference/gmp/functions/gmp-scan1.xml +++ b/reference/gmp/functions/gmp-scan1.xml @@ -1,6 +1,6 @@ - + @@ -55,6 +55,16 @@ + + &reftitle.errors; + + Lanza una ValueError si start es negativo o, a partir de PHP 8.5.0, demasiado grande. + + + Antes de PHP 8.0.0, se emitía un E_WARNING en su lugar. + + + &reftitle.examples; diff --git a/reference/gmp/functions/gmp-setbit.xml b/reference/gmp/functions/gmp-setbit.xml index 0ea403e6a..7a6f65419 100644 --- a/reference/gmp/functions/gmp-setbit.xml +++ b/reference/gmp/functions/gmp-setbit.xml @@ -1,6 +1,6 @@ - + @@ -63,6 +63,16 @@ + + &reftitle.errors; + + Lanza una ValueError si index es negativo o demasiado grande. + + + Antes de PHP 8.0.0, se emitía un E_WARNING en su lugar. + + + &reftitle.examples; diff --git a/reference/gmp/functions/gmp-sqrt.xml b/reference/gmp/functions/gmp-sqrt.xml index 34ffaa5b2..4659db9f5 100644 --- a/reference/gmp/functions/gmp-sqrt.xml +++ b/reference/gmp/functions/gmp-sqrt.xml @@ -1,6 +1,6 @@ - + @@ -40,6 +40,16 @@ + + &reftitle.errors; + + Lanza una ValueError si num es negativo. + + + Antes de PHP 8.0.0, se emitía un E_WARNING en su lugar. + + + &reftitle.examples; diff --git a/reference/gmp/functions/gmp-sqrtrem.xml b/reference/gmp/functions/gmp-sqrtrem.xml index a0b2e9c1f..09faf8e47 100644 --- a/reference/gmp/functions/gmp-sqrtrem.xml +++ b/reference/gmp/functions/gmp-sqrtrem.xml @@ -1,6 +1,6 @@ - + @@ -46,6 +46,16 @@ + + &reftitle.errors; + + Lanza una ValueError si num es negativo. + + + Antes de PHP 8.0.0, se emitía un E_WARNING en su lugar. + + + &reftitle.examples; diff --git a/reference/gmp/functions/gmp-strval.xml b/reference/gmp/functions/gmp-strval.xml index dc979d3bb..02a10fd9b 100644 --- a/reference/gmp/functions/gmp-strval.xml +++ b/reference/gmp/functions/gmp-strval.xml @@ -1,6 +1,6 @@ - + @@ -54,6 +54,17 @@ + + &reftitle.errors; + + Lanza una ValueError si base no está comprendido entre + 2 y 62, ni entre -2 y -36. + + + Antes de PHP 8.0.0, se emitía un E_WARNING en su lugar. + + + &reftitle.examples; diff --git a/reference/gmp/functions/gmp-testbit.xml b/reference/gmp/functions/gmp-testbit.xml index 9005c4623..bd488aa17 100644 --- a/reference/gmp/functions/gmp-testbit.xml +++ b/reference/gmp/functions/gmp-testbit.xml @@ -1,6 +1,6 @@ - + @@ -52,11 +52,12 @@ &reftitle.errors; - - Se emite una advertencia de nivel E_WARNING cuando el argumento - index es menor que 0 ; &false; será devuelto - en este caso. - + + Lanza una ValueError si index es negativo o, a partir de PHP 8.5.0, demasiado grande. + + + Antes de PHP 8.0.0, se emitía un E_WARNING y se devolvía &false; en su lugar. + diff --git a/reference/strings/functions/chunk-split.xml b/reference/strings/functions/chunk-split.xml index 900f12019..fa7a20bb9 100644 --- a/reference/strings/functions/chunk-split.xml +++ b/reference/strings/functions/chunk-split.xml @@ -1,5 +1,5 @@ - + @@ -64,6 +64,38 @@ + + &reftitle.errors; + + Lanza una ValueError si length + es menor que 1. + + + + + &reftitle.changelog; + + + + + &Version; + &Description; + + + + + 8.0.0 + + Ahora lanza una ValueError si length + es menor que 1. + Anteriormente, se emitía un E_WARNING y se devolvía &false;. + + + + + + + &reftitle.examples; diff --git a/reference/strings/functions/count-chars.xml b/reference/strings/functions/count-chars.xml index 930ed09b6..d1b649ab1 100644 --- a/reference/strings/functions/count-chars.xml +++ b/reference/strings/functions/count-chars.xml @@ -1,6 +1,6 @@ - + @@ -83,6 +83,14 @@ + + &reftitle.errors; + + Lanza una ValueError si mode + no está comprendido entre 0 y 4. + + + &reftitle.changelog; diff --git a/reference/strings/functions/str-pad.xml b/reference/strings/functions/str-pad.xml index e46dbc456..7640f0339 100644 --- a/reference/strings/functions/str-pad.xml +++ b/reference/strings/functions/str-pad.xml @@ -1,5 +1,5 @@ - + @@ -81,6 +81,40 @@ + + &reftitle.errors; + + Lanza una ValueError si length + es mayor que la longitud de string y + pad_string está vacío o pad_type no es + STR_PAD_LEFT, STR_PAD_RIGHT ni STR_PAD_BOTH. + + + + + &reftitle.changelog; + + + + + &Version; + &Description; + + + + + 8.0.0 + + Ahora lanza una ValueError si se necesita relleno y pad_string + está vacío o pad_type no es válido. + Anteriormente, se emitía un E_WARNING y se devolvía &null;. + + + + + + + &reftitle.examples; diff --git a/reference/strings/functions/str-repeat.xml b/reference/strings/functions/str-repeat.xml index c345861e6..caaa12744 100644 --- a/reference/strings/functions/str-repeat.xml +++ b/reference/strings/functions/str-repeat.xml @@ -1,6 +1,6 @@ - + @@ -58,6 +58,38 @@ + + &reftitle.errors; + + Lanza una ValueError si times + es menor que 0. + + + + + &reftitle.changelog; + + + + + &Version; + &Description; + + + + + 8.0.0 + + Ahora lanza una ValueError si times + es menor que 0. + Anteriormente, se emitía un E_WARNING y se devolvía &null;. + + + + + + + &reftitle.examples; diff --git a/reference/strings/functions/str-word-count.xml b/reference/strings/functions/str-word-count.xml index bd58a91dd..f7c475629 100644 --- a/reference/strings/functions/str-word-count.xml +++ b/reference/strings/functions/str-word-count.xml @@ -1,6 +1,6 @@ - + @@ -96,6 +96,14 @@ + + &reftitle.errors; + + Lanza una ValueError si format + no es 0, 1 ni 2. + + + &reftitle.changelog; @@ -107,6 +115,14 @@ + + 8.0.0 + + Ahora lanza una ValueError si format + no es válido. + Anteriormente, se emitía un E_WARNING y se devolvía &false;. + + 8.0.0 diff --git a/reference/strings/functions/strpbrk.xml b/reference/strings/functions/strpbrk.xml index fc19a6199..8f8c9db3e 100644 --- a/reference/strings/functions/strpbrk.xml +++ b/reference/strings/functions/strpbrk.xml @@ -1,5 +1,5 @@ - + @@ -52,6 +52,38 @@ + + &reftitle.errors; + + Lanza una ValueError si characters + está vacío. + + + + + &reftitle.changelog; + + + + + &Version; + &Description; + + + + + 8.0.0 + + Ahora lanza una ValueError si characters + está vacío. + Anteriormente, se emitía un E_WARNING y se devolvía &false;. + + + + + + + &reftitle.examples; diff --git a/reference/strings/functions/substr-compare.xml b/reference/strings/functions/substr-compare.xml index 8ce61b96c..07785e3b8 100644 --- a/reference/strings/functions/substr-compare.xml +++ b/reference/strings/functions/substr-compare.xml @@ -1,5 +1,5 @@ - + @@ -80,12 +80,16 @@ &reftitle.returnvalues; &strings.comparison.return; - - Si length es igual (anterior a PHP 7.2.18, 7.3.5) o - mayor que el tamaño de haystack o que - length está definido y es inferior a 0, - substr_compare muestra una alerta y retorna &false;. - + + + + &reftitle.errors; + + Lanza una ValueError si offset + es mayor que el tamaño de haystack y + length no es 0, + o si length es menor que 0. + @@ -101,6 +105,14 @@ &standard.changelog.binary-safe-string-comparison; + + 8.0.0 + + Ahora lanza una ValueError si offset + está fuera de rango o length es negativo. + Anteriormente, se emitía un E_WARNING y se devolvía &false;. + + 8.0.0 diff --git a/reference/strings/functions/substr-count.xml b/reference/strings/functions/substr-count.xml index 4074f96d4..fb08071c2 100644 --- a/reference/strings/functions/substr-count.xml +++ b/reference/strings/functions/substr-count.xml @@ -1,5 +1,5 @@ - + @@ -62,13 +62,13 @@ length - + La longitud máxima después del desplazamiento especificado para buscar el - string. La función emite un error si el desplazamiento más la longitud es - mayor que la longitud de haystack. + string. Se lanza una ValueError si el + desplazamiento más la longitud es mayor que la longitud de haystack. Una longitud negativa hará que el conteo comience al final de haystack. - + @@ -82,6 +82,16 @@ + + &reftitle.errors; + + Lanza una ValueError si needle + está vacío, si offset está fuera de haystack, + o si length está fuera de la parte de + haystack que sigue a offset. + + + &reftitle.changelog; @@ -94,6 +104,15 @@ + + 8.0.0 + + Ahora lanza una ValueError en lugar de emitir una + E_WARNING y devolver &false; cuando + needle está vacío o offset + o length están fuera de rango. + + 8.0.0