php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #69399 Serializable and __wakeup()
Submitted: 2015-04-08 22:19 UTC Modified: 2016-06-17 14:31 UTC
From: cmbecker69 at gmx dot de Assigned: cmb (profile)
Status: Closed Package: Documentation problem
PHP Version: Irrelevant OS: *
Private report: No CVE-ID: None
 [2015-04-08 22:19 UTC] cmbecker69 at gmx dot de
Description:
------------
---
From manual page: http://www.php.net/class.serializable
---
> Classes that implement this interface no longer support __sleep() and
> __wakeup().

There is, however, a notable exception: when an instance of such a class is
unserialized from a old representation ("O" instead of "C"), __wakeup() is
called (and not unserialize()). That feature can be very helpful for migration
(e.g. session data), but might also cause confusion, unless it's documented.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2016-06-17 14:31 UTC] cmb@php.net
Automatic comment from SVN on behalf of cmb
Revision: http://svn.php.net/viewvc/?view=revision&revision=339383
Log: Fix #69399: Serializable and __wakeup()
 [2016-06-17 14:31 UTC] cmb@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: cmb
 [2016-06-17 14:31 UTC] cmb@php.net
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.

Thank you for the report, and for helping us make our documentation better.


 [2020-02-07 06:07 UTC] phpdocbot@php.net
Automatic comment on behalf of cmb
Revision: http://git.php.net/?p=doc/en.git;a=commit;h=62268f3428a56129d6e84d70a4565cd89d9120b1
Log: Fix #69399: Serializable and __wakeup()
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Apr 24 08:01:29 2024 UTC