#38298 [Bgs]: serializing of simplexml objects
| From: | aeldarin at hotmail dot com | Date: | Wed, 02 Aug 2006 16:22:05 +0000 |
| Subject: | #38298 [Bgs]: serializing of simplexml objects | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-100244@lists.php.net to get a copy of this message | ||
ID: 38298
User updated by: aeldarin at hotmail dot com
Reported By: aeldarin at hotmail dot com
Status: Bogus
Bug Type: Feature/Change Request
Operating System: Windows
PHP Version: 5.1.4
New Comment:
I guess SimpleXML employs a lot of referencing pointers for performance
reasons which makes it not possible to serialize without some
intermediary which would do a sort of "memblock" with relative
pointers/indexes ? Such a intermediary layer for serializing would mean
a lot of work, I guess.
Previous Comments:
------------------------------------------------------------------------
[2006-08-02 15:33:40] tony2001@php.net
There is no way to store internal data structures as text.
------------------------------------------------------------------------
[2006-08-02 15:19:39] aeldarin at hotmail dot com
Description:
------------
http://www.php.net/manual/en/function.serialize.php
says that built-in
objects can't be serialized.
This also means that SimpleXML objects can NOT be stored in the
Memcached server since PHP automatically (un)serializes content
stored/retrieved to/from Memcached.
What happens is that hundreds of "Node does not exist"-warnings are
reported by the memcached-api (via unserialize) when trying to retrieve
the SimplXML object.
Being able to easily and efficiently cache SimpleXML with Memcached
would be tremendously helpful.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=38298&edit=1