Issues

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

Description

Quoting Michał Minicki:

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

http://framework.zend.com/svn/framework/…

Which is loaded by this code:



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

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

Comments

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