diff --git a/NEWS b/NEWS index 484ce8e2c63..51c763e9a8c 100644 --- a/NEWS +++ b/NEWS @@ -5,7 +5,7 @@ PHP NEWS - Core: . Fixed bug GH-19765 (object_properties_load() bypasses readonly property checks). (timwolla) - . The __sleep() magic method has been deprecated. (Girgias) + . The __sleep() and __wakeup() magic methods have been deprecated. (Girgias) - URI: . Fixed bug GH-19780 (InvalidUrlException should check $errors argument). diff --git a/UPGRADING b/UPGRADING index c1fddd138f3..e561b2b44a3 100644 --- a/UPGRADING +++ b/UPGRADING @@ -392,9 +392,9 @@ PHP 8.5 UPGRADE NOTES $_GET or $_SERVER['QUERY_STRING'] to access the information, after verifying that the usage is safe. RFC: https://wiki.php.net/rfc/deprecations_php_8_5#deprecate_the_register_argc_argv_ini_directive - . The __sleep() magic method has been deprecated. The __serialize() magic - method should be used instead, or at the same time if compatibility with - PHP 7 is required. + . The __sleep() and __wakeup() magic methods have been deprecated. The + __serialize() and __unserialize() magic methods should be used instead, + or at the same time if compatibility with PHP 7 is required. RFC: https://wiki.php.net/rfc/deprecations_php_8_5#deprecate_the_sleep_and_wakeup_magic_methods - Curl: diff --git a/ext/standard/tests/serialize/wakeup_deprecation_promoted_exception2.phpt b/ext/standard/tests/serialize/wakeup_deprecation_promoted_exception2.phpt index 52f558e566a..f90403b53db 100644 --- a/ext/standard/tests/serialize/wakeup_deprecation_promoted_exception2.phpt +++ b/ext/standard/tests/serialize/wakeup_deprecation_promoted_exception2.phpt @@ -15,4 +15,5 @@ try { ?> --EXPECT-- -ErrorException: The __wakeup() serialization magic method has been deprecated. Implement __unserialize() instead (or in addition, if support for old PHP versions is necessary) \ No newline at end of file +ErrorException: The __wakeup() serialization magic method has been deprecated. Implement __unserialize() instead (or in addition, if support for old PHP versions is necessary) +