mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
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:
parent
4a91ea0dd0
commit
c796f6a654
1 changed files with 1 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue