mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
Fix #62200: __set_state() not implemented
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@339526 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
9a8ee04fdf
commit
ec77057bf3
1 changed files with 13 additions and 0 deletions
|
@ -288,6 +288,19 @@ object(A)#2 (2) {
|
|||
]]>
|
||||
</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">
|
||||
|
|
Loading…
Reference in a new issue