Skip to content

Commit

Permalink
Use zend_get_gc_buffer_add_fcc()
Browse files Browse the repository at this point in the history
  • Loading branch information
nielsdos committed Sep 9, 2023
1 parent 1d59b37 commit 49980ee
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions ext/sqlite3/sqlite3.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

Expand Down

0 comments on commit 49980ee

Please sign in to comment.