From c3bee21256cd65be6c1f4540d4c4422fbef8735d Mon Sep 17 00:00:00 2001 From: Daniel Scherzer Date: Tue, 12 Aug 2025 06:05:09 -0700 Subject: [PATCH] NEWS/UPGRADING for recent deprecations --- NEWS | 14 ++++++++++++++ UPGRADING | 25 ++++++++++++++++++++++++- 2 files changed, 38 insertions(+), 1 deletion(-) diff --git a/NEWS b/NEWS index b00a1aad56b..34d5b7d65d8 100644 --- a/NEWS +++ b/NEWS @@ -13,6 +13,10 @@ PHP NEWS (timwolla) . Returning null from __debugInfo() has been deprecated. (DanielEScherzer) +- Curl: + . The curl_close() function has been deprecated. (DanielEScherzer) + . The curl_share_close() function has been deprecated. (DanielEScherzer) + - Date: . The DATE_RFC7231 and DateTimeInterface::RFC7231 constants have been deprecated. (jorgsowa) @@ -26,6 +30,9 @@ PHP NEWS . The $context parameter of the finfo_buffer() function has been deprecated as it is ignored. (Girgias) +- GD: + . The imagedestroy() function has been deprecated. (DanielEScherzer) + - Intl: . Intl's internal error mechanism has been modernized so that it indicates more accurately which call site caused what error. @@ -55,6 +62,10 @@ PHP NEWS `_property_string()`). (DanielEScherzer) . The setAccessible() methods of various Reflection objects have been deprecated, as those no longer have an effect. (timwolla) + . ReflectionClass::getConstant() for constants that do not exist has been + deprecated. (DanielEScherzer) + . ReflectionProperty::getDefaultValue() for properties without default values + has been deprecated. (DanielEScherzer) - SPL: . Unregistering all autoloaders by passing the spl_autoload_call() function @@ -74,6 +85,9 @@ PHP NEWS . Fixed bug GH-19153 (#[\Attribute] validation should error on trait/interface/enum/abstract class). (DanielEScherzer) +- XML: + . The xml_parser_free() function has been deprecated. (DanielEScherzer) + 31 Jul 2025, PHP 8.5.0alpha4 - Core: diff --git a/UPGRADING b/UPGRADING index 96ed8fee7d9..37f4f7e52b8 100644 --- a/UPGRADING +++ b/UPGRADING @@ -334,6 +334,14 @@ PHP 8.5 UPGRADE NOTES Return an empty array instead. RFC: https://wiki.php.net/rfc/deprecations_php_8_5#deprecate_debuginfo_returning_null +- Curl: + . The curl_close() function has been deprecated, as CurlHandle objects are + freed automatically. + RFC: https://wiki.php.net/rfc/deprecations_php_8_5#deprecate_curl_close + . The curl_share_close() function has been deprecated, as CurlShareHandle + objects are freed automatically. + RFC: https://wiki.php.net/rfc/deprecations_php_8_5#deprecate_curl_share_close + - Date: . The DATE_RFC7231 and DateTimeInterface::RFC7231 constants have been deprecated. This is because the associated timezone is ignored and always @@ -348,6 +356,11 @@ PHP 8.5 UPGRADE NOTES as it is ignored. RFC: https://wiki.php.net/rfc/deprecations_php_8_5#deprecate_the_context_parameter_for_finfo_buffer +- GD: + . The imagedestroy() function has been deprecated, as GdImage objects are + freed automatically. + RFC: https://wiki.php.net/rfc/deprecations_php_8_5#deprecate_imagedestroy + - Hash: . The MHASH_* constants have been deprecated. These have been overlooked when the mhash*() function family has been deprecated per @@ -375,11 +388,16 @@ PHP 8.5 UPGRADE NOTES DSNs coming from remote URIs. RFC: https://wiki.php.net/rfc/deprecations_php_8_5#deprecate_pdo_s_urischeme - - Reflection: . The setAccessible() methods of various Reflection objects have been deprecated, as those no longer have an effect. RFC: https://wiki.php.net/rfc/deprecations_php_8_5#deprecate_reflectionsetaccessible + . Calling ReflectionClass::getConstant() for constants that do not exist has + been deprecated. + RFC: https://wiki.php.net/rfc/deprecations_php_8_5#deprecate_reflectionclassgetconstant_for_missing_constants + . Calling ReflectionProperty::getDefaultValue() for properties without default + values has been deprecated. + RFC: https://wiki.php.net/rfc/deprecations_php_8_5#deprecate_reflectionpropertygetdefaultvalue_for_properties_without_default_values - SPL: . Unregistering all autoloaders by passing the spl_autoload_call() function @@ -402,6 +420,11 @@ PHP 8.5 UPGRADE NOTES explicitly instead. RFC: https://wiki.php.net/rfc/deprecations_php_8_5#deprecate_passing_null_to_readdir_rewinddir_and_closedir +- XML: + . The xml_parser_free() function has been deprecated, as XMLParser objects + are freed automatically. + RFC: https://wiki.php.net/rfc/deprecations_php_8_5#deprecate_xml_parser_free + ======================================== 5. Changed Functions ========================================