mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
Fixed link to magic methods (bug #43463)
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@247344 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
1a7af063ca
commit
d01d931ebd
1 changed files with 6 additions and 5 deletions
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.14 $ -->
|
||||
<!-- $Revision: 1.15 $ -->
|
||||
<refentry xml:id="function.serialize" xmlns="http://docbook.org/ns/docbook">
|
||||
<refnamediv>
|
||||
<refname>serialize</refname>
|
||||
|
@ -42,10 +42,11 @@
|
|||
</para>
|
||||
<para>
|
||||
When serializing objects, PHP will attempt to call the member function
|
||||
<function>__sleep</function> prior to serialization. This is to allow the
|
||||
object to do any last minute clean-up, etc. prior to being serialized.
|
||||
Likewise, when the object is restored using <function>unserialize</function>
|
||||
the <function>__wakeup</function> member function is called.
|
||||
<link linkend="language.oop5.magic">__sleep</link> prior to serialization.
|
||||
This is to allow the object to do any last minute clean-up, etc. prior
|
||||
to being serialized. Likewise, when the object is restored using
|
||||
<function>unserialize</function> the <link
|
||||
linkend="language.oop5.magic">__wakeup</link> member function is called.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
|
Loading…
Reference in a new issue