Skip to content

Commit 0375921

Browse files
Update NEWS/UPGRADING for __sleep/wakeup() soft-deprecation
1 parent 8c39511 commit 0375921

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

NEWS

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ PHP NEWS
22
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
33
?? ??? ????, PHP 8.5.0RC2
44

5+
- Core:
6+
. Revert deprecation of __sleep and __wakeup.
7+
They're now soft-deprecated. (Nicolas Grekas)
8+
59
- Opcache
610
. Fixed segfault in function JIT due to NAN to bool warning. (Girgias)
711

UPGRADING

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -401,10 +401,11 @@ PHP 8.5 UPGRADE NOTES
401401
$_GET or $_SERVER['QUERY_STRING'] to access the information, after verifying
402402
that the usage is safe.
403403
RFC: https://wiki.php.net/rfc/deprecations_php_8_5#deprecate_the_register_argc_argv_ini_directive
404-
. The __sleep() and __wakeup() magic methods have been deprecated. The
404+
. The __sleep() and __wakeup() magic methods have been soft-deprecated. The
405405
__serialize() and __unserialize() magic methods should be used instead,
406406
or at the same time if compatibility with PHP 7 is required.
407407
RFC: https://wiki.php.net/rfc/deprecations_php_8_5#deprecate_the_sleep_and_wakeup_magic_methods
408+
and https://wiki.php.net/rfc/soft-deprecate-sleep-wakeup
408409

409410
- Curl:
410411
. The curl_close() function has been deprecated, as CurlHandle objects are

0 commit comments

Comments
 (0)