svn: /phpdoc/en/trunk/language/oop5/ magic.xml
| From: | Christoph Michael Becker | Date: | Wed, 29 Jun 2016 17:03:32 +0000 |
| Subject: | svn: /phpdoc/en/trunk/language/oop5/ magic.xml | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-14265@lists.php.net to get a copy of this message | ||
cmb Wed, 29 Jun 2016 17:03:32 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=339526
Log:
Fix #62200: __set_state() not implemented
Bug: https://bugs.php.net/62200 (Open) __set_state() not
implemented
Changed paths:
U phpdoc/en/trunk/language/oop5/magic.xml
Modified: phpdoc/en/trunk/language/oop5/magic.xml
===================================================================
--- phpdoc/en/trunk/language/oop5/magic.xml 2016-06-29 16:48:52 UTC (rev 339525)
+++ phpdoc/en/trunk/language/oop5/magic.xml 2016-06-29 17:03:32 UTC (rev 339526)
@@ -288,6 +288,19 @@
]]>
</screen>
</example>
+ <note>
+ <simpara>
+ When exporting an object, <function>var_export</function> does not check
+ whether <link linkend="object.set-state">__set_state()</link> is
+ implemented by the object's class, so re-importing such objects will fail,
+ if __set_state() is not implemented. Particularly, this affects some
+ internal classes.
+ </simpara>
+ <simpara>
+ It is the responsibility of the programmer to verify that only objects will
+ be re-imported, whose class implements __set_state().
+ </simpara>
+ </note>
</sect2>
<sect2 xml:id="language.oop5.magic.debuginfo">