From 376d4554fbddc6a115c9e3bb3a8eb7efe922582f Mon Sep 17 00:00:00 2001 From: Marcus Boerger Date: Tue, 1 Nov 2005 21:18:24 +0000 Subject: [PATCH] - MFH the iterator base interface is Traversable not IteratorAggregate --- ext/spl/spl_iterators.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; } -- 2.40.0