ZF-6773: Zend_Config_Writer_Xml creates fatal error

Issue Type: Patch Created: 2009-05-22T01:27:05.000+0000 Last Updated: 2009-09-17T13:30:45.000+0000 Status: Resolved Fix version(s): Reporter: Manuel Schwenk (axute) Assignee: Ben Scholzen (dasprid) Tags: - Zend_Config_Writer

Related issues: Attachments: - ZF-6773.patch


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'=>''),1 => array('name'=>'firstname2 lastname2','mail'=>'')))); {quote}

// FIXME Zend/Config/Writer/Xml.php line (182) $child = $parent->addChild($branchName {color:red}-,(string) $value-{color});


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.

Have you found an issue?

See the Overview section for more details.


© 2006-2018 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.