Skip to content

Commit b2480c3

Browse files
committed
Revert "Add into zval to GC buffer first"
I thought I was on a branch and not master oopsie This reverts commit bd02141.
1 parent bd02141 commit b2480c3

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

ext/pdo/pdo_stmt.c

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2027,11 +2027,8 @@ static zend_function *dbstmt_method_get(zend_object **object_pp, zend_string *me
20272027
static HashTable *dbstmt_get_gc(zend_object *object, zval **gc_data, int *gc_count)
20282028
{
20292029
pdo_stmt_t *stmt = php_pdo_stmt_fetch_object(object);
2030-
2031-
zend_get_gc_buffer *gc_buffer = zend_get_gc_buffer_create();
2032-
zend_get_gc_buffer_add_zval(gc_buffer, &stmt->fetch.into);
2033-
zend_get_gc_buffer_add_zval(gc_buffer, &stmt->database_object_handle);
2034-
zend_get_gc_buffer_use(gc_buffer, gc_data, gc_count);
2030+
*gc_data = &stmt->fetch.into;
2031+
*gc_count = 1;
20352032

20362033
/**
20372034
* If there are no dynamic properties and the default property is 1 (that is, there is only one property

0 commit comments

Comments
 (0)