RE: [PEAR-DEV] XML_Serializer - bugs/changes?
| From: | Stephan Schmidt | Date: | Wed, 27 Aug 2003 15:48:41 +0000 |
| Subject: | RE: [PEAR-DEV] XML_Serializer - bugs/changes? | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-20648@lists.php.net to get a copy of this message | ||
Hi,
> just trying it out..
>
> require_once 'XML/Serializer.php';
> $serializer = new XML_Serializer();
> echo $serializer->serialize($this->classes);
>
> produces alot of errors as there are no options defined.. - should it
> merge the defaults in if not options are there..
Thanks, I'll fix it for the next release...
> you dont really need to have _defaultOptions and $options. -
> if you need the original array - just
> $o = new XML_Seralizer;
> merge_array($o->options,$options);
I think it's cleaner to have the default options seperated from the options
that are used, instantiating seems to be overkill, as I use the same
technique in the unserializer, which extends XML_Parser and so this would
always create a new XML parser...
Stephan