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.



34.7k

You dont need to Array, just to it

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


2.7k

You dont need to Array, just to it

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

```

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



2.7k

Fixed, at least @ 2.0.3