ZF-2240: Zend_Config_Xml can't find extended nodes (possibly only when empty)
When using a file such as this:
and loading it with Zend_Config_XML:
// Add Routes from config files $router = $front->getRouter(); $router->addConfig( new Zend_Config_Xml( 'config.xml', 'development' ), 'routes' );
it produces an exception: exception 'Zend_Controller_Router_Exception' with message 'No route configuration in section 'routes'' in /example/zend/library/Zend/Controller/Router/Rewrite.php:129
%svn update -r 6838 zend/library/Zend/Config
clears up the issue so the problem was introduced in revision 6906.
Looking at the source it my be due to the changes in the _toArray() method which assumes a node with no children is a string. My node has no children. Though this probably won't be the normal case I would think it should still work.