Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

"[#ZF2-309] Zend\Config\Reader : added support of [] operator in nested ini config" still open #3222

Closed
ziege opened this Issue Dec 14, 2012 · 0 comments

Comments

Projects
None yet
2 participants
Contributor

ziege commented Dec 14, 2012

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"
}
}
}

@Maks3w Maks3w closed this Jan 17, 2013

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