Skip to content
This repository was archived by the owner on Jan 8, 2020. It is now read-only.

[#ZF2-309] Zend\Config\Reader : added support of [] operator in nested ini config#2233

Merged
weierophinney merged 3 commits into
zendframework:masterfrom
robertmarsal:#ZF2-309
Aug 24, 2012
Merged

[#ZF2-309] Zend\Config\Reader : added support of [] operator in nested ini config#2233
weierophinney merged 3 commits into
zendframework:masterfrom
robertmarsal:#ZF2-309

Conversation

@robertmarsal

Copy link
Copy Markdown
Contributor

@travisbot

Copy link
Copy Markdown

This pull request fails (merged 753d009 into 0598a05).

@travisbot

Copy link
Copy Markdown

This pull request fails (merged 61dddbd into 0598a05).

@travisbot

Copy link
Copy Markdown

This pull request passes (merged 9a29537 into 0598a05).

@weierophinney weierophinney merged commit 9a29537 into zendframework:master Aug 24, 2012
@cziegenberg

Copy link
Copy Markdown
Contributor

The bug is not fixed - the fix only works for config variables of two levels, if you use more, the results is still wrong:

bla.foo.bar = foobar
bla.foobar[] = foobarArray
bla.foo.baz[] = foobaz1
bla.foo.baz[] = foobaz2

Results in:
array(1) {
["bla"]=>
array(3) {
["foo"]=>
array(1) {
["bar"]=>
string(6) "foobar"
}
["foobar"]=>
array(1) {
[0]=>
string(11) "foobarArray"
}
["foo.baz"]=>
array(2) {
[0]=>
string(7) "foobaz1"
[1]=>
string(7) "foobaz2"
}
}
}

@robertmarsal

Copy link
Copy Markdown
Contributor Author

sent pull request with fix: #3236

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants