mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
Fixed bug #50793 (Note about not being able to serialize internal objects needs clarifiaction)
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@304536 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
89fd31bb2e
commit
0a45b3310f
1 changed files with 10 additions and 1 deletions
|
@ -127,7 +127,16 @@ if (!odbc_execute($stmt, $sqldata)) {
|
|||
&reftitle.notes;
|
||||
<note>
|
||||
<para>
|
||||
It is not possible to serialize PHP built-in objects.
|
||||
Note that many built-in PHP objects cannot be serialized. However those with
|
||||
the ability either implement the <interfacename>Serializable</interface> or the
|
||||
magic <literal>__sleep</literal> and <literal>__wakeup</literal> methods. If an
|
||||
internal class doesn't forfill any of those requirements, it cannot reliably be
|
||||
serialized.
|
||||
</para>
|
||||
<para>
|
||||
There are some historical exceptions to the above rule, where some internal objects
|
||||
could be serialized without implementing the interface or exposing the methods. Notable
|
||||
is the <classname>ArrayObject</classname> prior to PHP 5.2.0.
|
||||
</para>
|
||||
</note>
|
||||
</refsect1>
|
||||
|
|
Loading…
Reference in a new issue