From 4ddc1c0d3ea0aebe8b61e5939c11feecdbbc6278 Mon Sep 17 00:00:00 2001 From: Gina Peter Banyard Date: Wed, 15 Jan 2025 15:44:50 +0000 Subject: [PATCH] test with dup --- ext/pdo/pdo_stmt.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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); } }