From b2480c3b554cb95114aebc65ecbd96045918c464 Mon Sep 17 00:00:00 2001 From: Gina Peter Banyard Date: Fri, 24 Jan 2025 14:26:42 +0000 Subject: [PATCH] Revert "Add into zval to GC buffer first" I thought I was on a branch and not master oopsie This reverts commit bd021416598f5eb674c4097f1bd8b1ba28162d53. --- ext/pdo/pdo_stmt.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/ext/pdo/pdo_stmt.c b/ext/pdo/pdo_stmt.c index 18ecbf1ddc6..dc0b952a86f 100644 --- a/ext/pdo/pdo_stmt.c +++ b/ext/pdo/pdo_stmt.c @@ -2027,11 +2027,8 @@ out: static HashTable *dbstmt_get_gc(zend_object *object, zval **gc_data, int *gc_count) { pdo_stmt_t *stmt = php_pdo_stmt_fetch_object(object); - - zend_get_gc_buffer *gc_buffer = zend_get_gc_buffer_create(); - zend_get_gc_buffer_add_zval(gc_buffer, &stmt->fetch.into); - zend_get_gc_buffer_add_zval(gc_buffer, &stmt->database_object_handle); - zend_get_gc_buffer_use(gc_buffer, gc_data, gc_count); + *gc_data = &stmt->fetch.into; + *gc_count = 1; /** * If there are no dynamic properties and the default property is 1 (that is, there is only one property