Skip to content

Commit 49fdf49

Browse files
committed
Update NEWS/UPGRADING for __wakeup()
Also add new line at the end of a test
1 parent a5f2eee commit 49fdf49

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

NEWS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ PHP NEWS
55
- Core:
66
. Fixed bug GH-19765 (object_properties_load() bypasses readonly property
77
checks). (timwolla)
8-
. The __sleep() magic method has been deprecated. (Girgias)
8+
. The __sleep() and __wakeup() magic methods have been deprecated. (Girgias)
99

1010
- URI:
1111
. Fixed bug GH-19780 (InvalidUrlException should check $errors argument).

UPGRADING

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -392,9 +392,9 @@ PHP 8.5 UPGRADE NOTES
392392
$_GET or $_SERVER['QUERY_STRING'] to access the information, after verifying
393393
that the usage is safe.
394394
RFC: https://wiki.php.net/rfc/deprecations_php_8_5#deprecate_the_register_argc_argv_ini_directive
395-
. The __sleep() magic method has been deprecated. The __serialize() magic
396-
method should be used instead, or at the same time if compatibility with
397-
PHP 7 is required.
395+
. The __sleep() and __wakeup() magic methods have been deprecated. The
396+
__serialize() and __unserialize() magic methods should be used instead,
397+
or at the same time if compatibility with PHP 7 is required.
398398
RFC: https://wiki.php.net/rfc/deprecations_php_8_5#deprecate_the_sleep_and_wakeup_magic_methods
399399

400400
- Curl:

ext/standard/tests/serialize/wakeup_deprecation_promoted_exception2.phpt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,5 @@ try {
1515

1616
?>
1717
--EXPECT--
18-
ErrorException: The __wakeup() serialization magic method has been deprecated. Implement __unserialize() instead (or in addition, if support for old PHP versions is necessary)
18+
ErrorException: The __wakeup() serialization magic method has been deprecated. Implement __unserialize() instead (or in addition, if support for old PHP versions is necessary)
19+

0 commit comments

Comments
 (0)