ZF-6773: Zend_Config_Writer_Xml creates fatal error
Description
If you try to create an XML config using a multidimensional array and the keys are numeric, the value is an array, there gets a fatal error on string-convertion.
Example {quote} {quote} creates this array: {quote} array('notification' =>array('adress' =>array(0 => array('name'=>'firstname lastname','mail'=>'mail@domain.de'),1 => array('name'=>'firstname2 lastname2','mail'=>'mail2@domain.de')))); {quote}
// FIXME Zend/Config/Writer/Xml.php line (182) $child = $parent->addChild($branchName {color:red}-,(string) $value-{color});
Comments
Posted by Jan Pieper (jpieper) on 2009-09-17T10:51:35.000+0000
Zend_Config cannot be converted to string so this is a bug.
Attached patch to fix this bug.
Posted by Jan Pieper (jpieper) on 2009-09-17T13:24:16.000+0000
Fixed in r18187.
Posted by Manuel Schwenk (axute) on 2009-09-17T13:30:44.000+0000
Thank you for this bugfix.