Revert "Add into zval to GC buffer first"

I thought I was on a branch and not master oopsie

This reverts commit bd02141659.
This commit is contained in:
Gina Peter Banyard 2025-01-24 14:26:42 +00:00
parent bd02141659
commit b2480c3b55
No known key found for this signature in database
GPG key ID: F30F8C1ACF51943F

View file

@ -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