From 312201dce4daca2770fd507af4a9a541bfe83fc0 Mon Sep 17 00:00:00 2001 From: Nikita Popov Date: Wed, 1 Jul 2020 11:49:44 +0200 Subject: Add get_gc handle for object iterators Optional handler with the same semantics as the object handler. --- ext/ffi/ffi.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'ext/ffi') diff --git a/ext/ffi/ffi.c b/ext/ffi/ffi.c index 946f6c9845..c06597283b 100644 --- a/ext/ffi/ffi.c +++ b/ext/ffi/ffi.c @@ -1874,7 +1874,8 @@ static const zend_object_iterator_funcs zend_ffi_cdata_it_funcs = { zend_ffi_cdata_it_get_current_key, zend_ffi_cdata_it_move_forward, zend_ffi_cdata_it_rewind, - NULL + NULL, + NULL, /* get_gc */ }; static zend_object_iterator *zend_ffi_cdata_get_iterator(zend_class_entry *ce, zval *object, int by_ref) /* {{{ */ -- cgit v1.2.1