History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: ZF-425
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Rob Allen
Reporter: Rob Allen
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Google issue summary
Zend Framework

extends= line must be first in the [section]

Created: 06/Oct/06 02:58 PM   Updated: 05/Jul/07 02:43 PM
Component/s: Zend_Config
Affects Version/s: 0.1.5
Fix Version/s: 0.2.0

Time Tracking:
Not Specified

Tags:
Participants: Rob Allen


 Description  « Hide
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...



 All   Comments   Work Log   Change History   FishEye   Crucible      Sort Order: Ascending order - Click to sort in descending order
Rob Allen - 19/Oct/06 02:17 AM
Fixed implicitly by ZF-352