XML Session serializer - XMLDBX
| From: | Mark | Date: | Thu, 26 Jan 2006 15:37:16 +0000 |
| Subject: | XML Session serializer - XMLDBX | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-229319@lists.php.net to get a copy of this message | ||
Well, last week or so I noticed that Squirrelmail's session array contained
recursive variable references and caused my serializer to crash on infinite
recursion. Oh well, that's life.
I found the time to add a variable stack for encoding to XML. If a variable
is "is_ref" or has a "refcount" greater than 1, the variable stack is
searched for a previous occurrence. If the variable has not been seen
previously, it is push onto the stack. If it has, only a reference ID of
the previous variable is saved in the xml stream.
is_ref and refcount are now added as attributes in the XML stream.
Anyone want to lend a hand and test the serializer?