Skip to content

Commit 4ddc1c0

Browse files
committed
test with dup
1 parent ed2eb88 commit 4ddc1c0

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

ext/pdo/pdo_stmt.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -672,8 +672,9 @@ static HashTable* pdo_class_fetch_prepare_constructor_arguments(const zend_funct
672672
} ZEND_HASH_FOREACH_END();
673673
return duplicated;
674674
} else {
675-
GC_ADDREF(ctor_args);
676-
return ctor_args;
675+
//GC_ADDREF(ctor_args);
676+
//return ctor_args;
677+
return zend_array_dup(ctor_args);
677678
}
678679
}
679680

0 commit comments

Comments
 (0)