diff options
author | George Peter Banyard <girgias@php.net> | 2020-02-10 11:46:19 +0100 |
---|---|---|
committer | George Peter Banyard <girgias@php.net> | 2020-02-10 11:46:19 +0100 |
commit | e01d2162b25eaf0875494142cf5236a8329b6da6 (patch) | |
tree | e353475699c82de449dec2ef3b1939fca4adb553 /Zend/zend_iterators.c | |
parent | a9e35b843c8ce2f077be9c4350949b0dd9aff06d (diff) | |
download | php-git-e01d2162b25eaf0875494142cf5236a8329b6da6.tar.gz |
Fix [-Wmissing-field-initializers] compiler warning in zend_iterator
Add missing NULL pointer for get_properties_for in iterator_object_handlers
initialization.
Also add two missing comments describing what the NULL pointer refer
to in iterator_object_handlers initialization.
Diffstat (limited to 'Zend/zend_iterators.c')
-rw-r--r-- | Zend/zend_iterators.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Zend/zend_iterators.c b/Zend/zend_iterators.c index c0bb418f3a..9823390a98 100644 --- a/Zend/zend_iterators.c +++ b/Zend/zend_iterators.c @@ -30,12 +30,12 @@ static const zend_object_handlers iterator_object_handlers = { 0, iter_wrapper_free, iter_wrapper_dtor, - NULL, + NULL, /* clone_obj */ NULL, /* prop read */ NULL, /* prop write */ NULL, /* read dim */ NULL, /* write dim */ - NULL, + NULL, /* get_property_ptr_ptr */ NULL, /* has prop */ NULL, /* unset prop */ NULL, /* has dim */ @@ -50,7 +50,8 @@ static const zend_object_handlers iterator_object_handlers = { NULL, /* get_closure */ iter_wrapper_get_gc, NULL, /* do_operation */ - NULL /* compare */ + NULL, /* compare */ + NULL /* get_properties_for */ }; ZEND_API void zend_register_iterator_wrapper(void) |