php-src icon indicating copy to clipboard operation
php-src copied to clipboard

serialzing xml

Open hill-car opened this issue 4 years ago • 1 comments

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!

hill-car avatar Jan 11 '22 13:01 hill-car

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.

cmb69 avatar Jan 11 '22 14:01 cmb69