svn: /phpdoc/en/trunk/reference/var/functions/ serialize.xml

From: Date: Wed, 20 Oct 2010 06:52:32 +0000
Subject: svn: /phpdoc/en/trunk/reference/var/functions/ serialize.xml
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-7260@lists.php.net to get a copy of this message
kalle Wed, 20 Oct 2010 06:52:32 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=304536 Log: Fixed bug #50793 (Note about not being able to serialize internal objects needs clarifiaction) Bug: http://bugs.php.net/50793 (Verified) Note about not being able to serialize internal objects needs clarifiaction Changed paths: U phpdoc/en/trunk/reference/var/functions/serialize.xml Modified: phpdoc/en/trunk/reference/var/functions/serialize.xml =================================================================== --- phpdoc/en/trunk/reference/var/functions/serialize.xml 2010-10-20 06:48:06 UTC (rev 304535) +++ phpdoc/en/trunk/reference/var/functions/serialize.xml 2010-10-20 06:52:32 UTC (rev 304536) @@ -127,8 +127,17 @@ &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>

« previous php.doc.cvs (#7260) next »