From 49980ee89dcdf71d062e9cfb94a24b515399d5cf Mon Sep 17 00:00:00 2001 From: Niels Dossche <7771979+nielsdos@users.noreply.github.com> Date: Sat, 9 Sep 2023 20:00:01 +0200 Subject: [PATCH] Use zend_get_gc_buffer_add_fcc() --- ext/sqlite3/sqlite3.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/ext/sqlite3/sqlite3.c b/ext/sqlite3/sqlite3.c index edbd11897d84b..badcfcc29b0c5 100644 --- a/ext/sqlite3/sqlite3.c +++ b/ext/sqlite3/sqlite3.c @@ -2248,12 +2248,7 @@ static void php_sqlite3_object_free_storage(zend_object *object) /* {{{ */ static void php_sqlite3_gc_buffer_add_fcc(zend_get_gc_buffer *gc_buffer, zend_fcall_info_cache *fcc) { if (ZEND_FCC_INITIALIZED(*fcc)) { - if (fcc->object) { - zend_get_gc_buffer_add_obj(gc_buffer, fcc->object); - } - if (fcc->closure) { - zend_get_gc_buffer_add_obj(gc_buffer, fcc->closure); - } + zend_get_gc_buffer_add_fcc(gc_buffer, fcc); } }