Issue

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:

Description

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

Consider:

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

[staging]
hostname = staging
db.name = dbstaging
debug = false
extends = all

Calling:

<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...

Comments

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.

Copyright

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

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

Contacts