ID:               30323
 Updated by:       [EMAIL PROTECTED]
 Reported By:      matthias dot hoseit at comline dot de
-Status:           Bogus
+Status:           Closed
 Bug Type:         Documentation problem
 Operating System: Windows 2000
 PHP Version:      5.0.2
 New Comment:

This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.

Thank you for the report, and for helping us make our documentation
better.

"It is not possible to serialize PHP built-in objects."

Curt, I think you are not right. You are right that properties of
internal classes are stored (visible e.g. with Directory class) but
methods are not reconstructed after unserializing with e.g. Warning:
Couldn't fetch DOMDocument.

So serailizing built-in object is useless.



Previous Comments:
------------------------------------------------------------------------

[2004-10-27 04:16:57] [EMAIL PROTECTED]

DOMDocument doesn't have any properties thus none are stored in the
searilzed string. unserializing the string creates a DOMDocument object
perfectly fine:

  $k = unserialize('O:11:"DOMDocument":0:{}');
  var_dump($k);

------------------------------------------------------------------------

[2004-10-04 16:58:27] matthias dot hoseit at comline dot de

Description:
------------
The function serialize() doesn't work on internal classes.

For example serializing a DOMDocument object return a byte-stream with
an empty value ("O:11:"DOMDocument":0:{}").

It should be mentioned in the PHP Manual of serialize(), that this
function only work on user defined classes.

Best Regards Matthias hoseit



------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=30323&edit=1

Reply via email to