Zend Framework

extends= line must be first in the [section]

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Priority: Major 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...

Activity

Hide
Rob Allen added a comment -

Fixed implicitly by ZF-352

Show
Rob Allen added a comment - Fixed implicitly by ZF-352

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: