|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2004-10-04 16:58 UTC] 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
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Nov 20 13:00:01 2025 UTC |
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);