summaryrefslogtreecommitdiff
path: root/ext/spl/php_spl.c
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2019-09-03 09:43:22 +0200
committerNikita Popov <nikita.ppv@gmail.com>2019-09-03 09:43:22 +0200
commit5acedabfc04ddbb53d68a52a4ebcccca3090cbdc (patch)
tree400c6cf3e5dba6934f1bbedfc524f6c04f337901 /ext/spl/php_spl.c
parentde643aaa46740f24038659059b2a3e8c9fcdf216 (diff)
downloadphp-git-5acedabfc04ddbb53d68a52a4ebcccca3090cbdc.tar.gz
Clarify failure behavior of spl_iterator_apply()
It only fails if it throws, in which case it is meaningless to set a return value.
Diffstat (limited to 'ext/spl/php_spl.c')
-rw-r--r--ext/spl/php_spl.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/ext/spl/php_spl.c b/ext/spl/php_spl.c
index e4e1774bd7..c509c24759 100644
--- a/ext/spl/php_spl.c
+++ b/ext/spl/php_spl.c
@@ -983,11 +983,9 @@ static const zend_function_entry spl_functions[] = {
PHP_FE(class_uses, arginfo_class_uses)
PHP_FE(spl_object_hash, arginfo_spl_object_hash)
PHP_FE(spl_object_id, arginfo_spl_object_id)
-#ifdef SPL_ITERATORS_H
PHP_FE(iterator_to_array, arginfo_iterator_to_array)
PHP_FE(iterator_count, arginfo_iterator)
PHP_FE(iterator_apply, arginfo_iterator_apply)
-#endif /* SPL_ITERATORS_H */
PHP_FE_END
};
/* }}} */