Doc #69399 [Opn->Csd]: Serializable and __wakeup()

From: Date: Fri, 17 Jun 2016 14:31:50 +0000
Subject: Doc #69399 [Opn->Csd]: Serializable and __wakeup()
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-13548@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=69399&edit=1 ID: 69399 Updated by: cmb@php.net Reported by: cmbecker69 at gmx dot de Summary: Serializable and __wakeup() -Status: Open +Status: Closed Type: Documentation Problem Package: Documentation problem Operating System: * PHP Version: Irrelevant -Assigned To: +Assigned To: cmb Block user comment: N Private report: N New Comment: 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. Previous Comments: ------------------------------------------------------------------------ [2016-06-17 14:31:17] 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() ------------------------------------------------------------------------ [2015-04-08 22:19:51] 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. ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=69399&edit=1

« previous php.doc.bugs (#13548) next »