diff --git a/ext/com_dotnet/com_iterator.c b/ext/com_dotnet/com_iterator.c index c47218bb00e14..a260b3ca90e37 100644 --- a/ext/com_dotnet/com_iterator.c +++ b/ext/com_dotnet/com_iterator.c @@ -64,9 +64,10 @@ static void com_iter_get_data(zend_object_iterator *iter, zval ***data TSRMLS_DC zval **ptr_ptr; zval *ptr; + /* sanity */ if (I->key == (ulong)-1) { *data = NULL; - return FAILURE; + return; } MAKE_STD_ZVAL(ptr); @@ -75,7 +76,7 @@ static void com_iter_get_data(zend_object_iterator *iter, zval ***data TSRMLS_DC *ptr_ptr = ptr; *data = ptr_ptr; - return SUCCESS; + return; } static int com_iter_get_key(zend_object_iterator *iter, char **str_key, uint *str_key_len,