]> granicus.if.org Git - php/commitdiff
Fix [-Wmissing-field-initializers] compiler warning in zend_iterator
authorGeorge Peter Banyard <girgias@php.net>
Mon, 10 Feb 2020 10:46:19 +0000 (11:46 +0100)
committerGeorge Peter Banyard <girgias@php.net>
Mon, 10 Feb 2020 10:46:19 +0000 (11:46 +0100)
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.

Zend/zend_iterators.c

index c0bb418f3a05b77486e8ef2aefc006daa59099cb..9823390a981cf239673ca2f18d204352972f493f 100644 (file)
@@ -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)