ZF-2508: Zend_Config_Ini does not load an INI file with no [sections]


Quoting Michał Minicki:

We have a routes-root.ini file in the tests directory:…

Which is loaded by this code:

But if you remove a routes section from this ini file and try to load whole

warning is displayed and config items probably aren't loaded:

Warning: Invalid argument supplied for foreach() in /home/martel/libs/ZendFramework/library/Zend/Config/Ini.php on line 175


Fixed on the trunk in svn r7653 and in release-1.0 in svn r7654.