[prev in list] [next in list] [prev in thread] [next in thread]
List: php-doc-cvs
Subject: [DOC-CVS] =?utf-8?q?svn:_/phpdoc/en/trunk/language/oop5/_magic.xml?=
From: Christoph_Michael_Becker <cmb () php ! net>
Date: 2016-06-29 17:03:32
Message-ID: svn-cmb-1467219812-339526-160217715 () svn ! php ! net
[Download RAW message or body]
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">
--
PHP Documentation Commits Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic