File tree Expand file tree Collapse file tree 4 files changed +7
-4
lines changed Expand file tree Collapse file tree 4 files changed +7
-4
lines changed Original file line number Diff line number Diff line change 44
55- Core:
66 . Fix OSS-Fuzz #447521098 (Fatal error during sccp shift eval). (ilutov)
7+ . Revert deprecation of __sleep() and __wakeup().
8+ They're now soft-deprecated. (Nicolas Grekas)
79
810- BcMath:
911 . Fixed bug GH-20006 (Power of 0 of BcMath number causes UB). (nielsdos)
Original file line number Diff line number Diff 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+ RFC: https://wiki.php.net/rfc/soft-deprecate-sleep-wakeup
408409
409410- Curl:
410411 . The curl_close() function has been deprecated, as CurlHandle objects are
Original file line number Diff line number Diff line change @@ -13,10 +13,10 @@ spl_autoload_register(function ($class) {
1313
1414class Foo
1515{
16- function __sleep ()
16+ function __serialize ()
1717 {
1818 new Bar ;
19- return array () ;
19+ return [] ;
2020 }
2121}
2222
Original file line number Diff line number Diff line change 11--TEST--
2- serialize()/unserialize()/var_dump()
2+ serialize()/unserialize()/var_dump() using __sleep() and __wakeup()
33--INI--
44serialize_precision=100
55--FILE--
You can’t perform that action at this time.
0 commit comments