Config.php (bugfix?)
| From: | Carsten Bleek | Date: | Wed, 16 Apr 2003 14:52:39 +0000 |
| Subject: | Config.php (bugfix?) | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-4880@lists.php.net to get a copy of this message | ||
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.
\carsten
--
--------------------------------------------------
Carsten Bleek Open HR Repository
carsten @ bleek . de http://www.open-hr.org
--------------------------------------------------