Fix #41992 (__sleep doesn't return the value to serialize) Thanks jsnell for the patch.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@239717 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Etienne Kneuss 2007-07-13 17:56:19 +00:00
parent 4a91ea0dd0
commit c796f6a654

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.15 $ -->
<!-- $Revision: 1.16 $ -->
<sect1 xml:id="language.oop5.magic" xmlns="http://docbook.org/ns/docbook">
<title>Magic Methods</title>
<para>
@ -50,10 +50,6 @@
useful if you have very large objects which do not need to be
saved completely.
</para>
<para>
The <literal>__sleep</literal> method should return the value to serialize
(usually <literal>$this</literal>), otherwise &null; is serialized.
</para>
<para>
Conversely, <function>unserialize</function> checks for the
presence of a function with the magic name