Skip to content

Commit 28ae4f9

Browse files
committed
PHP-1292: BSON Arrays should be... PHP Arrays
1 parent 344b607 commit 28ae4f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bson.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -542,7 +542,7 @@ bool php_phongo_bson_visit_array(const bson_iter_t *iter __attribute__((unused))
542542
zval *zchild = NULL;
543543

544544
MAKE_STD_ZVAL(zchild);
545-
object_init(zchild);
545+
array_init(zchild);
546546
if (!bson_iter_visit_all(&child, &php_bson_visitors, &zchild)) {
547547
if (Z_TYPE_P(retval) == IS_ARRAY) {
548548
add_assoc_zval(retval, key, zchild);

0 commit comments

Comments
 (0)