Re: Config.php (bugfix?)
| From: | Bertrand Mansion | Date: | Wed, 16 Apr 2003 15:00:02 +0000 |
| Subject: | Re: Config.php (bugfix?) | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-4882@lists.php.net to get a copy of this message | ||
<carsten.bleek@gmx.de> wrote :
> The Config.php (1.5) is not able to convert the following array into XML
>
> <?php
> require_once('Config.php');
>
> $array['a']['b'][0]['foo']="value1";
> $array['a']['b'][1]['foo']="value2";
>
> $c = new Config();
>
> $root = & $c->parseConfig($array, "phparray");
> print $root->toString("xml");
> ?>
>
> It resulted into:
>
> <?xml version="1.0" encoding="ISO-8859-1"?>
> <a>
> <b>Array</b>
> <b>Array</b>
> </a>
>
> The attached patch seems to fix the problem.
Thanks Carsten, you are my number one beta tester ;)
I'll apply the patch ASAP.
Bertrand Mansion
Mamasam