colder Fri Jul 13 17:56:19 2007 UTC
Modified files:
/phpdoc/en/language/oop5 magic.xml
Log:
Fix #41992 (__sleep doesn't return the value to serialize) Thanks jsnell for
the patch.
http://cvs.php.net/viewvc.cgi/phpdoc/en/language/oop5/magic.xml?r1=1.15&r2=1.16&diff_format=u
Index: phpdoc/en/language/oop5/magic.xml
diff -u phpdoc/en/language/oop5/magic.xml:1.15
phpdoc/en/language/oop5/magic.xml:1.16
--- phpdoc/en/language/oop5/magic.xml:1.15 Wed Jun 20 22:24:13 2007
+++ phpdoc/en/language/oop5/magic.xml Fri Jul 13 17:56:19 2007
@@ -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>
@@ -51,10 +51,6 @@
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
<literal>__wakeup</literal>. If present, this function can