mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
fixed the last invalid changes (xml)
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@64370 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
f937fa85ca
commit
a5b80971f4
1 changed files with 18 additions and 16 deletions
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.80 $ -->
|
||||
<!-- $Revision: 1.81 $ -->
|
||||
<reference id="ref.variables">
|
||||
<title>Variable Functions</title>
|
||||
<titleabbrev>Variables</titleabbrev>
|
||||
|
@ -1150,18 +1150,21 @@ settype($bar, "string"); // $bar is now "1" (string)
|
|||
If an object was serialized, its methods are not preserved in the
|
||||
returned value.
|
||||
</simpara>
|
||||
<simpara>
|
||||
It's possible to set a callback-function which will be called,
|
||||
if an undefined class should be instanciated during unserializing.
|
||||
(to prevent getting an incomplete <type>object</type> "__PHP_Incomplete_Class".)
|
||||
Use your php.ini, <function>ini_set</function> or .htaccess-file
|
||||
to define 'unserialize_callback_func'.
|
||||
Everytime an undefined class should be instanciated, it'll be called.
|
||||
To disable this feature just empty this global variable.
|
||||
<note>
|
||||
<para>
|
||||
<example>
|
||||
<title>unserialize_callback_func example</title>
|
||||
<programlisting role="php">
|
||||
It's possible to set a callback-function which will be called,
|
||||
if an undefined class should be instanciated during unserializing.
|
||||
(to prevent getting an incomplete <type>object</type> "__PHP_Incomplete_Class".)
|
||||
Use your php.ini, <function>ini_set</function> or .htaccess-file
|
||||
to define 'unserialize_callback_func'.
|
||||
Everytime an undefined class should be instanciated, it'll be called.
|
||||
To disable this feature just empty this global variable.
|
||||
</para>
|
||||
</note>
|
||||
<para>
|
||||
<example>
|
||||
<title>unserialize_callback_func example</title>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
$serialized_object='O:1:"a":1:{s:5:"value";s:3:"100";}';
|
||||
|
||||
|
@ -1172,10 +1175,9 @@ function mycallback($classname) {
|
|||
// you get $classname to figure out which classdefinition is required
|
||||
}
|
||||
]]>
|
||||
</programlisting>
|
||||
</example>
|
||||
</para>
|
||||
</simpara>
|
||||
</programlisting>
|
||||
</example>
|
||||
</para>
|
||||
<note>
|
||||
<para>
|
||||
In PHP 3, methods are not preserved when unserializing a
|
||||
|
|
Loading…
Reference in a new issue