1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00

Update NEWS and UPGRADING for __wakeup() deprecation of date classes

This commit is contained in:
Gina Peter Banyard
2025-09-22 00:10:19 +01:00
parent 4fbd2480bf
commit 4bc060c0f3
2 changed files with 7 additions and 0 deletions

3
NEWS
View File

@@ -25,6 +25,9 @@ PHP NEWS
- Date:
. Fixed GH-17159: "P" format for ::createFromFormat swallows string literals.
(nielsdos)
. The __wakeup() magic method of DateTimeInterface, DateTime,
DateTimeImmutable, DateTimeZone, DateInterval, and DatePeriod has been
deprecated in favour of the __unserialize() magic method. (Girgias)
- Exif:
. Fix OSS-Fuzz #442954659 (zero-size box in HEIF file causes infinite loop).

View File

@@ -417,6 +417,10 @@ PHP 8.5 UPGRADE NOTES
deprecated. This is because the associated timezone is ignored and always
uses GMT.
RFC: https://wiki.php.net/rfc/deprecations_php_8_5#deprecate_date_rfc7231_and_datetimeinterfacerfc7231
. The __wakeup() magic method of DateTimeInterface, DateTime,
DateTimeImmutable, DateTimeZone, DateInterval, and DatePeriod has been
deprecated in favour of the __unserialize() magic method.
Related to RFC: https://wiki.php.net/rfc/deprecations_php_8_5#deprecate_the_sleep_and_wakeup_magic_methods
- FileInfo:
. The finfo_close() function has been deprecated.