From: Marcus Boerger Date: Tue, 1 Nov 2005 21:17:51 +0000 (+0000) Subject: - The iterator base interface is Traversable not IteratorAggregate X-Git-Tag: RELEASE_2_0_1~76 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d73184b6baa8e220ae87a012e880afd5f538f71f;p=php - The iterator base interface is Traversable not IteratorAggregate --- diff --git a/ext/spl/spl_iterators.c b/ext/spl/spl_iterators.c index a8046ed06d..c4bb5872bf 100755 --- a/ext/spl/spl_iterators.c +++ b/ext/spl/spl_iterators.c @@ -2380,7 +2380,7 @@ PHP_FUNCTION(iterator_to_array) } /* }}} */ -/* {{{ int iterator_count(IteratorAggregate it) +/* {{{ int iterator_count(Traversable it) Count the elements in an iterator */ PHP_FUNCTION(iterator_count) { @@ -2388,7 +2388,7 @@ PHP_FUNCTION(iterator_count) zend_object_iterator *iter; long count = 0; - if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "O", &obj, U_CLASS_ENTRY(zend_ce_aggregate)) == FAILURE) { + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "O", &obj, U_CLASS_ENTRY(zend_ce_traversable)) == FAILURE) { RETURN_FALSE; }