Skip to content

Commit

Permalink
test with dup
Browse files Browse the repository at this point in the history
  • Loading branch information
Girgias committed Jan 15, 2025
1 parent ed2eb88 commit 4ddc1c0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ext/pdo/pdo_stmt.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

Expand Down

0 comments on commit 4ddc1c0

Please sign in to comment.