svn: /phpdoc/en/trunk/language/predefined/ serializable.xml
| From: | Christoph Michael Becker | Date: | Fri, 17 Jun 2016 14:31:14 +0000 |
| Subject: | svn: /phpdoc/en/trunk/language/predefined/ serializable.xml | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-14200@lists.php.net to get a copy of this message | ||
cmb Fri, 17 Jun 2016 14:31:14 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=339383
Log:
Fix #69399: Serializable and __wakeup()
Bug: https://bugs.php.net/69399 (Open) Serializable and
__wakeup()
Changed paths:
U phpdoc/en/trunk/language/predefined/serializable.xml
Modified: phpdoc/en/trunk/language/predefined/serializable.xml
===================================================================
--- phpdoc/en/trunk/language/predefined/serializable.xml 2016-06-17 10:12:43 UTC (rev 339382)
+++ phpdoc/en/trunk/language/predefined/serializable.xml 2016-06-17 14:31:14 UTC (rev 339383)
@@ -25,6 +25,13 @@
a constructor instead of calling __construct(). If you need to execute the standard
constructor you may do so in the method.
</para>
+ <para>
+ Note, that when an old instance of a class that implements this interface
+ now, which had been serialized before the class implemeted the interface, is
+ unserialized, <link linkend="object.wakeup">__wakeup()</link> is called
+ instead of the serialize method, what might be useful for migration
+ purposes.
+ </para>
</section>
<!-- }}} -->