We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

Issue with .INI configuration files

i've following configuration file

[user]
;property set #1 description
provider.property_set.1.active = true
provider.property_set.1.name = "Common"

when I'm trying to get result, something like (\Phalcon\Config)

$result = $config->user->provider->property_set->toArray();

I've reviced following result:

 ( [1] => Array ( [active] => 1) [2] => Array( [name] => Common) )

expected:

(
     [1] => Array
         (
             [active] => 1
             [name] => Common
         )
)

Another say, my numeric keys was igonored and result was re-ordered. Can any one explain why so happend?

I'm testing Phalcon 2.0

PS. in Phalcon 1.3.4, 1,3,3 it works correct

Thank you.



58.4k

You dont need to Array, just to it

$result = $config->user->provider->property_set


5.4k

You dont need to Array, just to it

$result = $config->user->provider->property_set

Issue in structure of array(result) which is different from expectation



5.4k

Fixed, at least @ 2.0.3