Skip to content

Commit 96f495d

Browse files
committed
Nit for json
1 parent 10a96e3 commit 96f495d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/json/json_parser.y

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ static int php_json_parser_array_append(php_json_parser *parser, zval *array, zv
230230
static int php_json_parser_object_create(php_json_parser *parser, zval *object)
231231
{
232232
if (parser->scanner.options & PHP_JSON_OBJECT_AS_ARRAY) {
233-
array_init(object);
233+
array_init_assoc(object);
234234
return SUCCESS;
235235
} else {
236236
return object_init(object);

0 commit comments

Comments
 (0)