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

Issue Type: Bug Created: 2008-01-27T08:10:35.000+0000 Last Updated: 2008-02-26T12:56:05.000+0000 Status: Resolved Fix version(s): - 1.0.4 (26/Feb/08)

Reporter: Joó Ádám (ceriak) Assignee: Rob Allen (rob) Tags: - Zend_Config

Related issues: Attachments:


Quoting Michał Minicki:

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

Which is loaded by this code:

<pre class="highlight">

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


Posted by Rob Allen (rob) on 2008-01-27T11:29:13.000+0000

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

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.