Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 0.1.5
-
Fix Version/s: 0.2.0
-
Component/s: Zend_Config
-
Labels:None
Description
The "extends=" line must be first in a section otherwise the other elements in the section will not override the inherited section.
Consider:
[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:
$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...
Fixed implicitly by
ZF-352ZF-352