Skip to content

Commit c3bee21

Browse files
NEWS/UPGRADING for recent deprecations
1 parent 57a88b2 commit c3bee21

File tree

2 files changed

+38
-1
lines changed

2 files changed

+38
-1
lines changed

NEWS

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ PHP NEWS
1313
(timwolla)
1414
. Returning null from __debugInfo() has been deprecated. (DanielEScherzer)
1515

16+
- Curl:
17+
. The curl_close() function has been deprecated. (DanielEScherzer)
18+
. The curl_share_close() function has been deprecated. (DanielEScherzer)
19+
1620
- Date:
1721
. The DATE_RFC7231 and DateTimeInterface::RFC7231 constants have been
1822
deprecated. (jorgsowa)
@@ -26,6 +30,9 @@ PHP NEWS
2630
. The $context parameter of the finfo_buffer() function has been deprecated
2731
as it is ignored. (Girgias)
2832

33+
- GD:
34+
. The imagedestroy() function has been deprecated. (DanielEScherzer)
35+
2936
- Intl:
3037
. Intl's internal error mechanism has been modernized so that it
3138
indicates more accurately which call site caused what error.
@@ -55,6 +62,10 @@ PHP NEWS
5562
`_property_string()`). (DanielEScherzer)
5663
. The setAccessible() methods of various Reflection objects have been
5764
deprecated, as those no longer have an effect. (timwolla)
65+
. ReflectionClass::getConstant() for constants that do not exist has been
66+
deprecated. (DanielEScherzer)
67+
. ReflectionProperty::getDefaultValue() for properties without default values
68+
has been deprecated. (DanielEScherzer)
5869

5970
- SPL:
6071
. Unregistering all autoloaders by passing the spl_autoload_call() function
@@ -74,6 +85,9 @@ PHP NEWS
7485
. Fixed bug GH-19153 (#[\Attribute] validation should error on
7586
trait/interface/enum/abstract class). (DanielEScherzer)
7687

88+
- XML:
89+
. The xml_parser_free() function has been deprecated. (DanielEScherzer)
90+
7791
31 Jul 2025, PHP 8.5.0alpha4
7892

7993
- Core:

UPGRADING

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -334,6 +334,14 @@ PHP 8.5 UPGRADE NOTES
334334
Return an empty array instead.
335335
RFC: https://wiki.php.net/rfc/deprecations_php_8_5#deprecate_debuginfo_returning_null
336336

337+
- Curl:
338+
. The curl_close() function has been deprecated, as CurlHandle objects are
339+
freed automatically.
340+
RFC: https://wiki.php.net/rfc/deprecations_php_8_5#deprecate_curl_close
341+
. The curl_share_close() function has been deprecated, as CurlShareHandle
342+
objects are freed automatically.
343+
RFC: https://wiki.php.net/rfc/deprecations_php_8_5#deprecate_curl_share_close
344+
337345
- Date:
338346
. The DATE_RFC7231 and DateTimeInterface::RFC7231 constants have been
339347
deprecated. This is because the associated timezone is ignored and always
@@ -348,6 +356,11 @@ PHP 8.5 UPGRADE NOTES
348356
as it is ignored.
349357
RFC: https://wiki.php.net/rfc/deprecations_php_8_5#deprecate_the_context_parameter_for_finfo_buffer
350358

359+
- GD:
360+
. The imagedestroy() function has been deprecated, as GdImage objects are
361+
freed automatically.
362+
RFC: https://wiki.php.net/rfc/deprecations_php_8_5#deprecate_imagedestroy
363+
351364
- Hash:
352365
. The MHASH_* constants have been deprecated. These have been overlooked
353366
when the mhash*() function family has been deprecated per
@@ -375,11 +388,16 @@ PHP 8.5 UPGRADE NOTES
375388
DSNs coming from remote URIs.
376389
RFC: https://wiki.php.net/rfc/deprecations_php_8_5#deprecate_pdo_s_urischeme
377390

378-
379391
- Reflection:
380392
. The setAccessible() methods of various Reflection objects have been
381393
deprecated, as those no longer have an effect.
382394
RFC: https://wiki.php.net/rfc/deprecations_php_8_5#deprecate_reflectionsetaccessible
395+
. Calling ReflectionClass::getConstant() for constants that do not exist has
396+
been deprecated.
397+
RFC: https://wiki.php.net/rfc/deprecations_php_8_5#deprecate_reflectionclassgetconstant_for_missing_constants
398+
. Calling ReflectionProperty::getDefaultValue() for properties without default
399+
values has been deprecated.
400+
RFC: https://wiki.php.net/rfc/deprecations_php_8_5#deprecate_reflectionpropertygetdefaultvalue_for_properties_without_default_values
383401

384402
- SPL:
385403
. Unregistering all autoloaders by passing the spl_autoload_call() function
@@ -402,6 +420,11 @@ PHP 8.5 UPGRADE NOTES
402420
explicitly instead.
403421
RFC: https://wiki.php.net/rfc/deprecations_php_8_5#deprecate_passing_null_to_readdir_rewinddir_and_closedir
404422

423+
- XML:
424+
. The xml_parser_free() function has been deprecated, as XMLParser objects
425+
are freed automatically.
426+
RFC: https://wiki.php.net/rfc/deprecations_php_8_5#deprecate_xml_parser_free
427+
405428
========================================
406429
5. Changed Functions
407430
========================================

0 commit comments

Comments
 (0)