mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
NEWS/UPGRADING for recent deprecations
This commit is contained in:
parent
57a88b216c
commit
c3bee21256
2 changed files with 38 additions and 1 deletions
14
NEWS
14
NEWS
|
@ -13,6 +13,10 @@ PHP NEWS
|
||||||
(timwolla)
|
(timwolla)
|
||||||
. Returning null from __debugInfo() has been deprecated. (DanielEScherzer)
|
. 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:
|
- Date:
|
||||||
. The DATE_RFC7231 and DateTimeInterface::RFC7231 constants have been
|
. The DATE_RFC7231 and DateTimeInterface::RFC7231 constants have been
|
||||||
deprecated. (jorgsowa)
|
deprecated. (jorgsowa)
|
||||||
|
@ -26,6 +30,9 @@ PHP NEWS
|
||||||
. The $context parameter of the finfo_buffer() function has been deprecated
|
. The $context parameter of the finfo_buffer() function has been deprecated
|
||||||
as it is ignored. (Girgias)
|
as it is ignored. (Girgias)
|
||||||
|
|
||||||
|
- GD:
|
||||||
|
. The imagedestroy() function has been deprecated. (DanielEScherzer)
|
||||||
|
|
||||||
- Intl:
|
- Intl:
|
||||||
. Intl's internal error mechanism has been modernized so that it
|
. Intl's internal error mechanism has been modernized so that it
|
||||||
indicates more accurately which call site caused what error.
|
indicates more accurately which call site caused what error.
|
||||||
|
@ -55,6 +62,10 @@ PHP NEWS
|
||||||
`_property_string()`). (DanielEScherzer)
|
`_property_string()`). (DanielEScherzer)
|
||||||
. The setAccessible() methods of various Reflection objects have been
|
. The setAccessible() methods of various Reflection objects have been
|
||||||
deprecated, as those no longer have an effect. (timwolla)
|
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:
|
- SPL:
|
||||||
. Unregistering all autoloaders by passing the spl_autoload_call() function
|
. 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
|
. Fixed bug GH-19153 (#[\Attribute] validation should error on
|
||||||
trait/interface/enum/abstract class). (DanielEScherzer)
|
trait/interface/enum/abstract class). (DanielEScherzer)
|
||||||
|
|
||||||
|
- XML:
|
||||||
|
. The xml_parser_free() function has been deprecated. (DanielEScherzer)
|
||||||
|
|
||||||
31 Jul 2025, PHP 8.5.0alpha4
|
31 Jul 2025, PHP 8.5.0alpha4
|
||||||
|
|
||||||
- Core:
|
- Core:
|
||||||
|
|
25
UPGRADING
25
UPGRADING
|
@ -334,6 +334,14 @@ PHP 8.5 UPGRADE NOTES
|
||||||
Return an empty array instead.
|
Return an empty array instead.
|
||||||
RFC: https://wiki.php.net/rfc/deprecations_php_8_5#deprecate_debuginfo_returning_null
|
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:
|
- Date:
|
||||||
. The DATE_RFC7231 and DateTimeInterface::RFC7231 constants have been
|
. The DATE_RFC7231 and DateTimeInterface::RFC7231 constants have been
|
||||||
deprecated. This is because the associated timezone is ignored and always
|
deprecated. This is because the associated timezone is ignored and always
|
||||||
|
@ -348,6 +356,11 @@ PHP 8.5 UPGRADE NOTES
|
||||||
as it is ignored.
|
as it is ignored.
|
||||||
RFC: https://wiki.php.net/rfc/deprecations_php_8_5#deprecate_the_context_parameter_for_finfo_buffer
|
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:
|
- Hash:
|
||||||
. The MHASH_* constants have been deprecated. These have been overlooked
|
. The MHASH_* constants have been deprecated. These have been overlooked
|
||||||
when the mhash*() function family has been deprecated per
|
when the mhash*() function family has been deprecated per
|
||||||
|
@ -375,11 +388,16 @@ PHP 8.5 UPGRADE NOTES
|
||||||
DSNs coming from remote URIs.
|
DSNs coming from remote URIs.
|
||||||
RFC: https://wiki.php.net/rfc/deprecations_php_8_5#deprecate_pdo_s_urischeme
|
RFC: https://wiki.php.net/rfc/deprecations_php_8_5#deprecate_pdo_s_urischeme
|
||||||
|
|
||||||
|
|
||||||
- Reflection:
|
- Reflection:
|
||||||
. The setAccessible() methods of various Reflection objects have been
|
. The setAccessible() methods of various Reflection objects have been
|
||||||
deprecated, as those no longer have an effect.
|
deprecated, as those no longer have an effect.
|
||||||
RFC: https://wiki.php.net/rfc/deprecations_php_8_5#deprecate_reflectionsetaccessible
|
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:
|
- SPL:
|
||||||
. Unregistering all autoloaders by passing the spl_autoload_call() function
|
. Unregistering all autoloaders by passing the spl_autoload_call() function
|
||||||
|
@ -402,6 +420,11 @@ PHP 8.5 UPGRADE NOTES
|
||||||
explicitly instead.
|
explicitly instead.
|
||||||
RFC: https://wiki.php.net/rfc/deprecations_php_8_5#deprecate_passing_null_to_readdir_rewinddir_and_closedir
|
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
|
5. Changed Functions
|
||||||
========================================
|
========================================
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue