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:
Kalle Sommer Nielsen 2010-10-20 06:52:32 +00:00
parent 89fd31bb2e
commit 0a45b3310f

View file

@ -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>