RE: [PEAR-DEV] XML_Serializer - bugs/changes?
| From: | Lukas Smith | Date: | Wed, 27 Aug 2003 15:55:15 +0000 |
| Subject: | RE: [PEAR-DEV] XML_Serializer - bugs/changes? | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-20651@lists.php.net to get a copy of this message | ||
> From: Alan Knowles [mailto:alan@akbkhome.com]
> Sent: Wednesday, August 27, 2003 1:48 PM
>
> 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..
>
> 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);
btw: there currently is no good function in php to merge option multi
dimensional arrays :-/
that's why I added a method for this in liveuser (which is essentially
the array_merge_clobber() function taken from the
array_merge_recursive() user notes) .. guess we should file a feature
request at some point.
Regards,
Lukas
regards,
Lukas