Skip to content

Commit

Permalink
Fixed typo
Browse files Browse the repository at this point in the history
  • Loading branch information
laruence committed Feb 19, 2020
1 parent fc40373 commit 90bf80a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions tests/inis/002/basic.ini
@@ -1,10 +1,11 @@
a="a"
a.0=1
a.1=1
a[1]=1
a.2[]=1

b.a=1
b.a=2
b.b.c=1
b.b.c.d=1
b.b.c.d[]=1
b.b.c.d[]=2
b.b.c.d[1]=2
2 changes: 1 addition & 1 deletion yaconf.c
Expand Up @@ -345,7 +345,7 @@ static void php_yaconf_simple_parser_cb(zval *key, zval *value, zval *index, int
if ((pzval = zend_symtable_str_find(Z_ARRVAL_P(parent), seg, len))) {
if (Z_TYPE_P(pzval) != IS_ARRAY) {
php_yaconf_hash_init(&rv, 8);
pzval = php_yaconf_symtable_update(Z_ARRVAL_P(pzval), seg, len, &rv);
pzval = php_yaconf_symtable_update(Z_ARRVAL_P(parent), seg, len, &rv);
}
} else {
php_yaconf_hash_init(&rv, 8);
Expand Down

0 comments on commit 90bf80a

Please sign in to comment.