php-src
php-src copied to clipboard
serialzing xml
Description
I am maximal confused that the php serialization-Method is not able to serialize SimpleXMLElement-Objects, because SimpleXMLElement deserializes XML-Strings before...
So SimpleXml should implement Searializable!
SimpleXML is implemented on top of libxml2, and as such proper (un)serialization would require a lot of custom code to be implemented, and it seems unlikely that this would be considerably faster than (un)serialization from/to string. So use this instead, e.g. https://3v4l.org/WqLfO.
If you feel strongly that proper (un)serialization should be implemented, please purse the RFC process.