diff --git a/ext/pdo/pdo_stmt.c b/ext/pdo/pdo_stmt.c index 010d6b956f21..0e6c2569388e 100644 --- a/ext/pdo/pdo_stmt.c +++ b/ext/pdo/pdo_stmt.c @@ -672,8 +672,9 @@ static HashTable* pdo_class_fetch_prepare_constructor_arguments(const zend_funct } ZEND_HASH_FOREACH_END(); return duplicated; } else { - GC_ADDREF(ctor_args); - return ctor_args; + //GC_ADDREF(ctor_args); + //return ctor_args; + return zend_array_dup(ctor_args); } }