Re: XML Session serializer - XMLDBX
| From: | Mark | Date: | Thu, 26 Jan 2006 16:46:59 +0000 |
| Subject: | Re: XML Session serializer - XMLDBX | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-229322@lists.php.net to get a copy of this message | ||
Mark wrote:
> 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?
Doh!!
www.mohawksoft.org
In the "Code and Documentation" section, click on "CVS Access" and follow
the instructions for XMLDBX PHP Extension