ZF-9661: Zend_Config_Ini Problem with 0 (zero) as property name
I have a config.ini file in which i use 0 as a property/key name. Until now i was using zend framework 1.5.2, but i'm now updating.
The problem appeared with version 1.8.2 and upwards. I think it is connected to the fix of ZF-5800 (SVN r14667).
In my config.ini, i have something similar to the following:
foo.bar.1.bar=ff3f00 foo.bar.1.font=fefbf7 foo.bar.0.bar=ff2b00 foo.bar.0.font=ffff
But when i load this and convert it to an Array i get this:
[foo] => Array ( [bar] => Array (  => Array (  => Array ( [bar] => ff3f00 [font] => fefbf7 ) [bar] => ff2b00 [font] => ffffff ) ) )
Instead i would expect something like that:
[foo] => Array ( [bar] => Array (  => Array ( [bar] => ff3f00 [font] => fefbf7 )  => Array ( [bar] => ff2b00 [font] => ffffff ) ) )
The "real" code is a bit longer, but this is what it needs to be reproduced. When 0/zero is the last property name, i have no problem.
I think this is a bug, but easy to workaround by prefixing the numbers.