-
-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ini config parsed incorrectly when using numeric indexes #12725
Comments
I would consider it an unsupported format. The example can be done using associative arrays instead: channel.handlers.stream.name = stream
channel.handlers.stream.level = debug
channel.handlers.stream.fingersCrossed = info
channel.handlers.stream.filename = channel.log
channel.handlers.redis.name = redis
channel.handlers.redis.level = debug
channel.handlers.redis.fingersCrossed = info Is there any reason why the handlers array should be an indexed array instead of associative? Other config formats support it anyway. |
It's possible, for sure. The numeric approach just seems more obvious for
us as we already have the "name" attribute and, as you said, is supported
to the other config formats.
Ps: we choose for change to php config files anyway, specially to make then
less limited by the format.
|
actually you can try
|
But I need a complex object for this index, not a scalar value.
|
Thank you for contributing to this issue. As it has been 90 days since the last activity, we are automatically closing the issue. This is often because the request was already solved in some way and it just wasn't updated or it's no longer applicable. If that's not the case, please feel free to either reopen this issue or open a new one. We will be more than happy to look at it again! You can read more here: https://blog.phalconphp.com/post/github-closing-old-issues |
Fixed in the |
We are updgrade a Phalcon 1.* app and, in Phalcon 2.* to 3.0.4, our config files started to load incorrectly.
I'm trying to parse an ini array for logs config with this format:
What I expected to see was:
But this is what I got was:
Apparently, integer pieces in string are not creating array indexes. This is a bug or an unsupported format?
The text was updated successfully, but these errors were encountered: