diff --git a/reference/calendar/functions/cal-days-in-month.xml b/reference/calendar/functions/cal-days-in-month.xml index 3feebb1fe8..336e20430f 100644 --- a/reference/calendar/functions/cal-days-in-month.xml +++ b/reference/calendar/functions/cal-days-in-month.xml @@ -1,7 +1,5 @@ - - - + @@ -63,6 +61,40 @@ + + &reftitle.errors; + + Lève une ValueError si calendar + n'est pas un identifiant de calendrier valide, si month ou + year est en dehors de l'intervalle pris en charge, ou si la date n'est pas valide + dans le calendrier donné. + + + + + &reftitle.changelog; + + + + + &Version; + &Description; + + + + + 8.0.0 + + Lève désormais une ValueError si calendar + n'est pas un identifiant de calendrier valide, ou si la date n'est pas valide. + Auparavant, une E_WARNING était émise et &false; était retournée. + + + + + + + &reftitle.examples; diff --git a/reference/calendar/functions/cal-from-jd.xml b/reference/calendar/functions/cal-from-jd.xml index bd1c254575..14b381670b 100644 --- a/reference/calendar/functions/cal-from-jd.xml +++ b/reference/calendar/functions/cal-from-jd.xml @@ -1,7 +1,5 @@ - - - + cal_from_jd @@ -63,6 +61,38 @@ + + &reftitle.errors; + + Lève une ValueError si calendar + n'est pas un identifiant de calendrier valide. + + + + + &reftitle.changelog; + + + + + &Version; + &Description; + + + + + 8.0.0 + + Lève désormais une ValueError si calendar + n'est pas un identifiant de calendrier valide. + Auparavant, une E_WARNING était émise et &false; était retournée. + + + + + + + &reftitle.examples; diff --git a/reference/calendar/functions/cal-info.xml b/reference/calendar/functions/cal-info.xml index 269f094140..44844a579f 100644 --- a/reference/calendar/functions/cal-info.xml +++ b/reference/calendar/functions/cal-info.xml @@ -1,7 +1,5 @@ - - - + @@ -79,6 +77,38 @@ + + &reftitle.errors; + + Lève une ValueError si calendar + n'est ni -1 ni un identifiant de calendrier valide. + + + + + &reftitle.changelog; + + + + + &Version; + &Description; + + + + + 8.0.0 + + Lève désormais une ValueError si calendar + n'est pas un identifiant de calendrier valide. + Auparavant, une E_WARNING était émise et &false; était retournée. + + + + + + + &reftitle.examples; diff --git a/reference/calendar/functions/cal-to-jd.xml b/reference/calendar/functions/cal-to-jd.xml index 1dbe7e6a6a..f4e1c965ce 100644 --- a/reference/calendar/functions/cal-to-jd.xml +++ b/reference/calendar/functions/cal-to-jd.xml @@ -1,7 +1,5 @@ - - - + @@ -83,6 +81,40 @@ + + &reftitle.errors; + + Lève une ValueError si calendar + n'est pas un identifiant de calendrier valide, si month est inférieur à 1, + ou si month, day ou year + dépasse l'intervalle 32 bits pris en charge. Les autres dates invalides retournent 0. + + + + + &reftitle.changelog; + + + + + &Version; + &Description; + + + + + 8.0.0 + + Lève désormais une ValueError si calendar + n'est pas un identifiant de calendrier valide. + Auparavant, une E_WARNING était émise et &false; était retournée. + + + + + + + &reftitle.seealso; diff --git a/reference/calendar/functions/jdtojewish.xml b/reference/calendar/functions/jdtojewish.xml index 8d81e30a5e..2da0195861 100644 --- a/reference/calendar/functions/jdtojewish.xml +++ b/reference/calendar/functions/jdtojewish.xml @@ -1,7 +1,5 @@ - - - + jdtojewish @@ -65,6 +63,38 @@ + + &reftitle.errors; + + Lève une ValueError si hebrew vaut &true; + et que l'année n'est pas comprise entre 1 et 9999. + + + + + &reftitle.changelog; + + + + + &Version; + &Description; + + + + + 8.0.0 + + Lève désormais une ValueError si l'année est hors limites + lorsque hebrew vaut &true;. + Auparavant, une E_WARNING était émise et &false; était retourné. + + + + + + + &reftitle.examples; diff --git a/reference/calendar/functions/jewishtojd.xml b/reference/calendar/functions/jewishtojd.xml index 187d134d8c..d88782892d 100644 --- a/reference/calendar/functions/jewishtojd.xml +++ b/reference/calendar/functions/jewishtojd.xml @@ -1,7 +1,5 @@ - - - + @@ -72,6 +70,14 @@ + + &reftitle.errors; + + Lève une ValueError si year + ne tient pas dans un entier 32 bits. + + + &reftitle.seealso; diff --git a/reference/calendar/functions/unixtojd.xml b/reference/calendar/functions/unixtojd.xml index 06f0a2b6d5..4d1b9a50c1 100644 --- a/reference/calendar/functions/unixtojd.xml +++ b/reference/calendar/functions/unixtojd.xml @@ -1,7 +1,5 @@ - - - + @@ -46,6 +44,14 @@ + + &reftitle.errors; + + Lève une ValueError si timestamp + est négatif. + + + &reftitle.changelog; @@ -57,6 +63,13 @@ + + 8.0.0 + + Lève désormais une ValueError si timestamp + est négatif. Auparavant, &false; était retourné. + + 8.0.0 diff --git a/reference/gmp/functions/gmp-clrbit.xml b/reference/gmp/functions/gmp-clrbit.xml index 2a1582f84d..6b6a3bad54 100644 --- a/reference/gmp/functions/gmp-clrbit.xml +++ b/reference/gmp/functions/gmp-clrbit.xml @@ -1,7 +1,5 @@ - - - + gmp_clrbit @@ -54,6 +52,17 @@ + + &reftitle.errors; + + Lève une ValueError si index + est négatif ou, à partir de PHP 8.5.0, trop grand. + + + Avant PHP 8.0.0, une E_WARNING était émise à la place. + + + &reftitle.examples; diff --git a/reference/gmp/functions/gmp-fact.xml b/reference/gmp/functions/gmp-fact.xml index bafa577890..9db0d85d5e 100644 --- a/reference/gmp/functions/gmp-fact.xml +++ b/reference/gmp/functions/gmp-fact.xml @@ -1,7 +1,5 @@ - - - + gmp_fact @@ -43,6 +41,17 @@ + + &reftitle.errors; + + Lève une ValueError si num + est négatif. + + + Avant PHP 8.0.0, une E_WARNING était émise à la place. + + + &reftitle.examples; diff --git a/reference/gmp/functions/gmp-pow.xml b/reference/gmp/functions/gmp-pow.xml index 29fe3a6a23..8344f5d68f 100644 --- a/reference/gmp/functions/gmp-pow.xml +++ b/reference/gmp/functions/gmp-pow.xml @@ -1,7 +1,5 @@ - - - + gmp_pow @@ -53,6 +51,17 @@ + + &reftitle.errors; + + Lève une ValueError si exponent + est négatif. + + + Avant PHP 8.0.0, une E_WARNING était émise à la place. + + + &reftitle.examples; @@ -65,8 +74,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); // Négatif, génère un warning -echo gmp_strval($pow3) . "\n"; ?> ]]> diff --git a/reference/gmp/functions/gmp-powm.xml b/reference/gmp/functions/gmp-powm.xml index 22835346ee..5f418bf362 100644 --- a/reference/gmp/functions/gmp-powm.xml +++ b/reference/gmp/functions/gmp-powm.xml @@ -1,7 +1,5 @@ - - - + gmp_powm @@ -16,11 +14,10 @@ GMPintstringexponent GMPintstringmodulus - + Calcule (num puissance exponent) - modulo modulus. Si exponent est négatif, - le résultat est indéfini. - + modulo modulus. + @@ -66,6 +63,21 @@ + + &reftitle.errors; + + Lève une ValueError si exponent + est négatif. + + + Lève une DivisionByZeroError si modulus + vaut 0. + + + Avant PHP 8.0.0, une E_WARNING était émise à la place. + + + &reftitle.examples; diff --git a/reference/gmp/functions/gmp-root.xml b/reference/gmp/functions/gmp-root.xml index 0cf482d05c..2536fbf0dd 100644 --- a/reference/gmp/functions/gmp-root.xml +++ b/reference/gmp/functions/gmp-root.xml @@ -1,7 +1,5 @@ - - - + gmp_root @@ -50,6 +48,17 @@ nombre GMP. + + + &reftitle.errors; + + Lève une ValueError si nth est inférieur à 1, + ou si nth est pair et que num est négatif. + + + Avant PHP 8.0.0, une E_WARNING était émise à la place. + + - - + gmp_rootrem @@ -51,6 +49,17 @@ forme d'un nombre GMP. + + + &reftitle.errors; + + Lève une ValueError si nth est inférieur à 1, + ou si nth est pair et que num est négatif. + + + Avant PHP 8.0.0, une E_WARNING était émise à la place. + + - - + gmp_scan0 @@ -55,6 +53,16 @@ + + &reftitle.errors; + + Lève une ValueError si start est négatif ou, à partir de PHP 8.5.0, trop grand. + + + Avant PHP 8.0.0, une E_WARNING était émise à la place. + + + &reftitle.examples; diff --git a/reference/gmp/functions/gmp-scan1.xml b/reference/gmp/functions/gmp-scan1.xml index 83737ab0b7..ad31a16ccc 100644 --- a/reference/gmp/functions/gmp-scan1.xml +++ b/reference/gmp/functions/gmp-scan1.xml @@ -1,7 +1,5 @@ - - - + gmp_scan1 @@ -56,6 +54,16 @@ + + &reftitle.errors; + + Lève une ValueError si start est négatif ou, à partir de PHP 8.5.0, trop grand. + + + Avant PHP 8.0.0, une E_WARNING était émise à la place. + + + &reftitle.examples; diff --git a/reference/gmp/functions/gmp-setbit.xml b/reference/gmp/functions/gmp-setbit.xml index 430f76d4bf..724c93a8fe 100644 --- a/reference/gmp/functions/gmp-setbit.xml +++ b/reference/gmp/functions/gmp-setbit.xml @@ -1,7 +1,5 @@ - - - + gmp_setbit @@ -63,6 +61,16 @@ + + &reftitle.errors; + + Lève une ValueError si index est négatif ou trop grand. + + + Avant PHP 8.0.0, une E_WARNING était émise à la place. + + + &reftitle.examples; diff --git a/reference/gmp/functions/gmp-sqrt.xml b/reference/gmp/functions/gmp-sqrt.xml index 90fb683cbb..f25f0c50c7 100644 --- a/reference/gmp/functions/gmp-sqrt.xml +++ b/reference/gmp/functions/gmp-sqrt.xml @@ -1,7 +1,5 @@ - - - + gmp_sqrt @@ -40,6 +38,16 @@ + + &reftitle.errors; + + Lève une ValueError si num est négatif. + + + Avant PHP 8.0.0, une E_WARNING était émise à la place. + + + &reftitle.examples; diff --git a/reference/gmp/functions/gmp-sqrtrem.xml b/reference/gmp/functions/gmp-sqrtrem.xml index c504e48d17..33e4220e0b 100644 --- a/reference/gmp/functions/gmp-sqrtrem.xml +++ b/reference/gmp/functions/gmp-sqrtrem.xml @@ -1,7 +1,5 @@ - - - + gmp_sqrtrem @@ -46,6 +44,16 @@ + + &reftitle.errors; + + Lève une ValueError si num est négatif. + + + Avant PHP 8.0.0, une E_WARNING était émise à la place. + + + &reftitle.examples; diff --git a/reference/gmp/functions/gmp-strval.xml b/reference/gmp/functions/gmp-strval.xml index 4e4b49ebdb..eb24241580 100644 --- a/reference/gmp/functions/gmp-strval.xml +++ b/reference/gmp/functions/gmp-strval.xml @@ -1,7 +1,5 @@ - - - + gmp_strval @@ -54,6 +52,17 @@ + + &reftitle.errors; + + Lève une ValueError si base n'est pas compris + entre 2 et 62, ou entre -2 et -36. + + + Avant PHP 8.0.0, une E_WARNING était émise à la place. + + + &reftitle.examples; diff --git a/reference/gmp/functions/gmp-testbit.xml b/reference/gmp/functions/gmp-testbit.xml index 643907cbc3..1ca164360d 100644 --- a/reference/gmp/functions/gmp-testbit.xml +++ b/reference/gmp/functions/gmp-testbit.xml @@ -1,7 +1,5 @@ - - - + gmp_testbit @@ -52,11 +50,12 @@ &reftitle.errors; - - Une alerte de niveau E_WARNING est émise lorsque le paramètre - index est inférieur à &zero; ; &false; sera retourné - dans ce cas. - + + Lève une ValueError si index est négatif ou, à partir de PHP 8.5.0, trop grand. + + + Avant PHP 8.0.0, une E_WARNING était émise et &false; était retourné à la place. + diff --git a/reference/strings/functions/chunk-split.xml b/reference/strings/functions/chunk-split.xml index c430cfd698..6b02ab4fc7 100644 --- a/reference/strings/functions/chunk-split.xml +++ b/reference/strings/functions/chunk-split.xml @@ -1,6 +1,5 @@ - - + chunk_split @@ -64,6 +63,38 @@ + + &reftitle.errors; + + Lève une ValueError si length + est inférieur à 1. + + + + + &reftitle.changelog; + + + + + &Version; + &Description; + + + + + 8.0.0 + + Lève désormais une ValueError si length + est inférieur à 1. + Auparavant, une E_WARNING était émise et &false; était retournée. + + + + + + + &reftitle.examples; diff --git a/reference/strings/functions/count-chars.xml b/reference/strings/functions/count-chars.xml index 19d4e5a184..f6dd557f8d 100644 --- a/reference/strings/functions/count-chars.xml +++ b/reference/strings/functions/count-chars.xml @@ -1,7 +1,5 @@ - - - + count_chars @@ -83,6 +81,14 @@ + + &reftitle.errors; + + Lève une ValueError si mode + n'est pas compris entre 0 et 4. + + + &reftitle.changelog; diff --git a/reference/strings/functions/str-pad.xml b/reference/strings/functions/str-pad.xml index 9e33cca8e0..eecca76639 100644 --- a/reference/strings/functions/str-pad.xml +++ b/reference/strings/functions/str-pad.xml @@ -1,6 +1,5 @@ - - + str_pad @@ -82,6 +81,39 @@ + + &reftitle.errors; + + Lève une ValueError si length + est supérieur à la longueur de string et que + pad_string est vide ou que pad_type n'est ni + STR_PAD_LEFT, ni STR_PAD_RIGHT, ni STR_PAD_BOTH. + + + + + &reftitle.changelog; + + + + + &Version; + &Description; + + + + + 8.0.0 + + Lève désormais une ValueError si un complément est nécessaire et que pad_string + est vide ou que pad_type est invalide. + Auparavant, une E_WARNING était émise et &null; était retournée. + + + + + + &reftitle.examples; diff --git a/reference/strings/functions/str-repeat.xml b/reference/strings/functions/str-repeat.xml index 7f13f3c04f..c1fd788cfc 100644 --- a/reference/strings/functions/str-repeat.xml +++ b/reference/strings/functions/str-repeat.xml @@ -1,5 +1,5 @@ - + str_repeat @@ -56,6 +56,38 @@ + + &reftitle.errors; + + Lève une ValueError si times + est inférieur à 0. + + + + + &reftitle.changelog; + + + + + &Version; + &Description; + + + + + 8.0.0 + + Lève désormais une ValueError si times + est inférieur à 0. + Auparavant, une E_WARNING était émise et &null; était retournée. + + + + + + + &reftitle.examples; diff --git a/reference/strings/functions/str-word-count.xml b/reference/strings/functions/str-word-count.xml index 51be95d522..ca93717535 100644 --- a/reference/strings/functions/str-word-count.xml +++ b/reference/strings/functions/str-word-count.xml @@ -1,5 +1,5 @@ - + str_word_count @@ -95,6 +95,15 @@ + + &reftitle.errors; + + Lève une exception ValueError si + format n'est pas 0, + 1 ou 2. + + + &reftitle.changelog; @@ -106,6 +115,15 @@ + + 8.0.0 + + Lève désormais une exception ValueError + si format est invalide. + Auparavant, une E_WARNING était émise et &false; + était retourné. + + 8.0.0 diff --git a/reference/strings/functions/strpbrk.xml b/reference/strings/functions/strpbrk.xml index bb3e056317..f06f394d6d 100644 --- a/reference/strings/functions/strpbrk.xml +++ b/reference/strings/functions/strpbrk.xml @@ -1,5 +1,5 @@ - + strpbrk @@ -51,6 +51,39 @@ + + &reftitle.errors; + + Lève une exception ValueError si + characters est vide. + + + + + &reftitle.changelog; + + + + + &Version; + &Description; + + + + + 8.0.0 + + Lève désormais une exception ValueError + si characters est vide. + Auparavant, une E_WARNING était émise et &false; + était retourné. + + + + + + + &reftitle.examples; diff --git a/reference/strings/functions/substr-compare.xml b/reference/strings/functions/substr-compare.xml index 173b9869d0..e3b88d8606 100644 --- a/reference/strings/functions/substr-compare.xml +++ b/reference/strings/functions/substr-compare.xml @@ -1,6 +1,5 @@ - - + substr_compare @@ -80,12 +79,17 @@ &reftitle.returnvalues; &strings.comparison.return; - - Si offset est égal (antérieur à PHP 7.2.18, 7.3.5) ou - plus grand que la taille de haystack ou que - length est défini et inférieur à 0, - substr_compare affiche une alerte et retourne &false;. - + + + + &reftitle.errors; + + Lève une exception ValueError si + offset est plus grand que la taille de + haystack et que length + n'est pas 0, ou si length est + inférieur à 0. + @@ -101,6 +105,16 @@ &standard.changelog.binary-safe-string-comparison; + + 8.0.0 + + Lève désormais une exception ValueError + si offset est hors limites ou si + length est négatif. + Auparavant, une E_WARNING était émise et &false; + était retourné. + + 8.0.0 diff --git a/reference/strings/functions/substr-count.xml b/reference/strings/functions/substr-count.xml index a3c0fc6898..47eed60c55 100644 --- a/reference/strings/functions/substr-count.xml +++ b/reference/strings/functions/substr-count.xml @@ -1,6 +1,5 @@ - - + substr_count @@ -62,13 +61,14 @@ length - + La taille maximale après le décalage spécifié pour rechercher la - chaîne. La fonction émet une erreur si le décalage plus la taille est - plus grand que la taille de haystack. + chaîne. Une exception ValueError est + levée si le décalage plus la taille est plus grand que la taille de + haystack. Une taille négative fera que le comptage commencera à la fin de haystack. - + @@ -82,6 +82,17 @@ + + &reftitle.errors; + + Lève une exception ValueError si + needle est vide, si offset + est en dehors de haystack, ou si + length est en dehors de la partie de + haystack qui suit offset. + + + &reftitle.changelog; @@ -94,6 +105,16 @@ + + 8.0.0 + + Lève désormais une exception ValueError + au lieu d'émettre une E_WARNING et de retourner + &false; lorsque needle est vide ou que + offset ou length est + hors limites. + + 8.0.0