Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 4191843

Browse files
committed
Update NEWS/UPGRADING for __sleep() deprecation
1 parent f18e992 commit 4191843

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

‎NEWS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +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)
89

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

‎UPGRADING

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -392,6 +392,10 @@ 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.
398+
RFC: https://wiki.php.net/rfc/deprecations_php_8_5#deprecate_the_sleep_and_wakeup_magic_methods
395399

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

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /