From 03fb99fba90c5f8fe11470c5c19bac127522df81 Mon Sep 17 00:00:00 2001 From: Louis-Arnaud Catoire Date: Mon, 18 May 2026 20:16:24 +0200 Subject: [PATCH] [Sync EN] Add PHP 8.5.0 deprecation changelog entries (#5369) Fixes #2878 --- reference/fileinfo/functions/finfo-buffer.xml | 9 +++++- .../reflectionclass/getconstant.xml | 27 ++++++++++++++-- .../reflectionmethod/setaccessible.xml | 31 ++++++++++++++++++- .../reflectionproperty/getdefaultvalue.xml | 25 ++++++++++++++- .../reflectionproperty/setaccessible.xml | 31 ++++++++++++++++++- .../spl/functions/spl-autoload-unregister.xml | 30 ++++++++++++++++-- reference/spl/splobjectstorage/attach.xml | 27 ++++++++++++++-- reference/spl/splobjectstorage/contains.xml | 25 ++++++++++++++- reference/spl/splobjectstorage/detach.xml | 25 ++++++++++++++- reference/strings/functions/chr.xml | 9 +++++- reference/strings/functions/ord.xml | 24 +++++++++++++- 11 files changed, 249 insertions(+), 14 deletions(-) diff --git a/reference/fileinfo/functions/finfo-buffer.xml b/reference/fileinfo/functions/finfo-buffer.xml index ab3cca68c4..6cbc53ad72 100644 --- a/reference/fileinfo/functions/finfo-buffer.xml +++ b/reference/fileinfo/functions/finfo-buffer.xml @@ -1,5 +1,5 @@ - + @@ -84,6 +84,13 @@ + + 8.5.0 + + Le paramètre context a été rendu obsolète + car il est ignoré. + + &fileinfo.changelog.finfo-object; 8.0.0 diff --git a/reference/reflection/reflectionclass/getconstant.xml b/reference/reflection/reflectionclass/getconstant.xml index 4a3c8e5cef..e8bb93893d 100644 --- a/reference/reflection/reflectionclass/getconstant.xml +++ b/reference/reflection/reflectionclass/getconstant.xml @@ -1,5 +1,5 @@ - + @@ -41,7 +41,30 @@ Retourne &false; si la constante n'a pas été trouvée dans la classe. - + + + &reftitle.changelog; + + + + + &Version; + &Description; + + + + + 8.5.0 + + L'appel à ReflectionClass::getConstant pour + des constantes qui n'existent pas a été rendu obsolète. + + + + + + + &reftitle.examples; diff --git a/reference/reflection/reflectionmethod/setaccessible.xml b/reference/reflection/reflectionmethod/setaccessible.xml index c5f52db308..617c501029 100644 --- a/reference/reflection/reflectionmethod/setaccessible.xml +++ b/reference/reflection/reflectionmethod/setaccessible.xml @@ -1,5 +1,5 @@ - + @@ -52,6 +52,35 @@ + + &reftitle.changelog; + + + + + &Version; + &Description; + + + + + 8.5.0 + + Cette méthode a été rendue obsolète, car elle n'a plus aucun effet. + + + + 8.1.0 + + L'appel à cette méthode n'a aucun effet ; toutes les méthodes sont + invocables par défaut. + + + + + + + &reftitle.examples; diff --git a/reference/reflection/reflectionproperty/getdefaultvalue.xml b/reference/reflection/reflectionproperty/getdefaultvalue.xml index ce4000b710..06bc1884c1 100644 --- a/reference/reflection/reflectionproperty/getdefaultvalue.xml +++ b/reference/reflection/reflectionproperty/getdefaultvalue.xml @@ -1,5 +1,5 @@ - + @@ -33,6 +33,29 @@ + + &reftitle.changelog; + + + + + &Version; + &Description; + + + + + 8.5.0 + + L'appel à ReflectionProperty::getDefaultValue + pour des propriétés sans valeur par défaut a été rendu obsolète. + + + + + + + &reftitle.examples; diff --git a/reference/reflection/reflectionproperty/setaccessible.xml b/reference/reflection/reflectionproperty/setaccessible.xml index 845814b967..948b6efb86 100644 --- a/reference/reflection/reflectionproperty/setaccessible.xml +++ b/reference/reflection/reflectionproperty/setaccessible.xml @@ -1,5 +1,5 @@ - + @@ -53,6 +53,35 @@ + + &reftitle.changelog; + + + + + &Version; + &Description; + + + + + 8.5.0 + + Cette méthode a été rendue obsolète, car elle n'a plus aucun effet. + + + + 8.1.0 + + L'appel à cette méthode n'a aucun effet ; toutes les propriétés sont + accessibles par défaut. + + + + + + + &reftitle.examples; diff --git a/reference/spl/functions/spl-autoload-unregister.xml b/reference/spl/functions/spl-autoload-unregister.xml index 8b55ffcc7e..b4b2ccae4c 100644 --- a/reference/spl/functions/spl-autoload-unregister.xml +++ b/reference/spl/functions/spl-autoload-unregister.xml @@ -1,6 +1,6 @@ - + @@ -48,7 +48,33 @@ &return.success; - + + + &reftitle.changelog; + + + + + &Version; + &Description; + + + + + 8.5.0 + + Passer la fonction spl_autoload_call comme + argument de rappel pour désinscrire tous les autoloaders a été rendu + obsolète. Il faut à la place itérer sur la valeur de retour de + spl_autoload_functions et appeler + spl_autoload_unregister sur chaque valeur. + + + + + + + + @@ -58,7 +58,30 @@ &return.void; - + + + &reftitle.changelog; + + + + + &Version; + &Description; + + + + + 8.5.0 + + Cette méthode a été rendue obsolète en faveur de + SplObjectStorage::offsetSet. + + + + + + + &reftitle.examples; diff --git a/reference/spl/splobjectstorage/contains.xml b/reference/spl/splobjectstorage/contains.xml index 858a05e0f9..559d84494e 100644 --- a/reference/spl/splobjectstorage/contains.xml +++ b/reference/spl/splobjectstorage/contains.xml @@ -1,5 +1,5 @@ - + @@ -46,6 +46,29 @@ + + &reftitle.changelog; + + + + + &Version; + &Description; + + + + + 8.5.0 + + Cette méthode a été rendue obsolète en faveur de + SplObjectStorage::offsetExists. + + + + + + + &reftitle.examples; diff --git a/reference/spl/splobjectstorage/detach.xml b/reference/spl/splobjectstorage/detach.xml index bf2f8b36d5..ce1867469c 100644 --- a/reference/spl/splobjectstorage/detach.xml +++ b/reference/spl/splobjectstorage/detach.xml @@ -1,5 +1,5 @@ - + @@ -46,6 +46,29 @@ + + &reftitle.changelog; + + + + + &Version; + &Description; + + + + + 8.5.0 + + Cette méthode a été rendue obsolète en faveur de + SplObjectStorage::offsetUnset. + + + + + + + &reftitle.examples; diff --git a/reference/strings/functions/chr.xml b/reference/strings/functions/chr.xml index b1c5d4f6fc..69d4595ca2 100644 --- a/reference/strings/functions/chr.xml +++ b/reference/strings/functions/chr.xml @@ -1,5 +1,5 @@ - + @@ -78,6 +78,13 @@ $bytevalue %= 256; + + 8.5.0 + + Passer des entiers en dehors de l'intervalle [0, 255] + a été rendu obsolète. + + 7.4.0 diff --git a/reference/strings/functions/ord.xml b/reference/strings/functions/ord.xml index 033cadeeb3..46f8026fca 100644 --- a/reference/strings/functions/ord.xml +++ b/reference/strings/functions/ord.xml @@ -1,5 +1,5 @@ - + @@ -53,6 +53,28 @@ + + &reftitle.changelog; + + + + + &Version; + &Description; + + + + + 8.5.0 + + Passer une chaîne qui n'est pas un seul octet a été rendu obsolète. + + + + + + + &reftitle.examples;