@@ -334,6 +334,14 @@ PHP 8.5 UPGRADE NOTES
334
334
Return an empty array instead.
335
335
RFC: https://wiki.php.net/rfc/deprecations_php_8_5#deprecate_debuginfo_returning_null
336
336
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
+
337
345
- Date:
338
346
. The DATE_RFC7231 and DateTimeInterface::RFC7231 constants have been
339
347
deprecated. This is because the associated timezone is ignored and always
@@ -348,6 +356,11 @@ PHP 8.5 UPGRADE NOTES
348
356
as it is ignored.
349
357
RFC: https://wiki.php.net/rfc/deprecations_php_8_5#deprecate_the_context_parameter_for_finfo_buffer
350
358
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
+
351
364
- Hash:
352
365
. The MHASH_* constants have been deprecated. These have been overlooked
353
366
when the mhash*() function family has been deprecated per
@@ -375,11 +388,16 @@ PHP 8.5 UPGRADE NOTES
375
388
DSNs coming from remote URIs.
376
389
RFC: https://wiki.php.net/rfc/deprecations_php_8_5#deprecate_pdo_s_urischeme
377
390
378
-
379
391
- Reflection:
380
392
. The setAccessible() methods of various Reflection objects have been
381
393
deprecated, as those no longer have an effect.
382
394
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
383
401
384
402
- SPL:
385
403
. Unregistering all autoloaders by passing the spl_autoload_call() function
@@ -402,6 +420,11 @@ PHP 8.5 UPGRADE NOTES
402
420
explicitly instead.
403
421
RFC: https://wiki.php.net/rfc/deprecations_php_8_5#deprecate_passing_null_to_readdir_rewinddir_and_closedir
404
422
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
+
405
428
========================================
406
429
5. Changed Functions
407
430
========================================
0 commit comments