diff --git a/NEWS b/NEWS index 4798f3e407b..42ce461a4e1 100644 --- a/NEWS +++ b/NEWS @@ -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). diff --git a/UPGRADING b/UPGRADING index c84a373d857..fc6000686c4 100644 --- a/UPGRADING +++ b/UPGRADING @@ -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.