mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
Adding <function> tags
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@110299 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
1b667dc7b8
commit
9df31d5213
2 changed files with 8 additions and 8 deletions
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.4 $ -->
|
||||
<!-- $Revision: 1.5 $ -->
|
||||
<!-- splitted from ./en/functions/var.xml, last change in rev 1.28 -->
|
||||
<refentry id="function.serialize">
|
||||
<refnamediv>
|
||||
|
@ -32,11 +32,11 @@
|
|||
are <function>serialize</function>ing will also be stored.
|
||||
</simpara>
|
||||
<simpara>
|
||||
When serializing objects, PHP will attempt to call the member function
|
||||
__sleep() 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 __wakeup()
|
||||
member function is called.
|
||||
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.
|
||||
</simpara>
|
||||
<!-- TODO
|
||||
in 4.0.4pl1 this didn't work properly, however, there
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.9 $ -->
|
||||
<!-- $Revision: 1.10 $ -->
|
||||
<!-- splitted from ./en/functions/var.xml, last change in rev 1.2 -->
|
||||
<refentry id="function.unserialize">
|
||||
<refnamediv>
|
||||
|
@ -45,7 +45,7 @@
|
|||
<para>
|
||||
If the variable being unserialized is an object, after successfully
|
||||
reconstructing the object PHP will automatically attempt to call the
|
||||
__wakeup() member function (if it exists).
|
||||
<function>__wakeup</function> member function (if it exists).
|
||||
<example>
|
||||
<title>unserialize_callback_func example</title>
|
||||
<programlisting role="php">
|
||||
|
|
Loading…
Reference in a new issue