From: Marcus Boerger Date: Tue, 1 Nov 2005 21:18:24 +0000 (+0000) Subject: - MFH the iterator base interface is Traversable not IteratorAggregate X-Git-Tag: php-5.1.0RC5~74 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=376d4554fbddc6a115c9e3bb3a8eb7efe922582f;p=php - MFH the iterator base interface is Traversable not IteratorAggregate --- diff --git a/ext/spl/spl_iterators.c b/ext/spl/spl_iterators.c index fef9dab0dd..3441aa7ddf 100755 --- a/ext/spl/spl_iterators.c +++ b/ext/spl/spl_iterators.c @@ -2048,7 +2048,7 @@ PHP_FUNCTION(iterator_to_array) } /* }}} */ -/* {{{ int iterator_count(IteratorAggregate it) +/* {{{ int iterator_count(Travesable it) Count the elements in an iterator */ PHP_FUNCTION(iterator_count) { @@ -2056,7 +2056,7 @@ PHP_FUNCTION(iterator_count) zend_object_iterator *iter; long count = 0; - if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "O", &obj, zend_ce_aggregate) == FAILURE) { + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "O", &obj, zend_ce_traversable) == FAILURE) { RETURN_FALSE; }