ZF-425: extends= line must be first in the [section]

Issue Type: Bug Created: 2006-10-06T14:58:22.000+0000 Last Updated: 2007-07-05T14:43:22.000+0000 Status: Resolved Fix version(s): - 0.2.0 (29/Oct/06)

Reporter: Rob Allen (rob) Assignee: Rob Allen (rob) Tags: - Zend_Config

Related issues: Attachments:


The "extends=" line must be first in a section otherwise the other elements in the section will not override the inherited section.


<pre class="highlight">
hostname = all
name = thisname =
db.user = username
db.pass = password = live
one.two.three = multi

hostname = staging = dbstaging
debug = false
extends = all


<pre class="highlight">
$config = new Zend_Config_Ini('config.ini', 'staging');

results in hostname = all, rather than hostname = staging.

Of course, this will become moot once ZF-352 is implemented...


Posted by Rob Allen (rob) on 2006-10-19T02:17:59.000+0000

Fixed implicitly by ZF-352

Have you found an issue?

See the Overview section for more details.


© 2006-2022 by Zend by Perforce. Made with by awesome contributors.

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