]> granicus.if.org Git - php/commitdiff
- The iterator base interface is Traversable not IteratorAggregate
authorMarcus Boerger <helly@php.net>
Tue, 1 Nov 2005 21:17:51 +0000 (21:17 +0000)
committerMarcus Boerger <helly@php.net>
Tue, 1 Nov 2005 21:17:51 +0000 (21:17 +0000)
ext/spl/spl_iterators.c

index a8046ed06d8be10bf12aa7c416b620561b294a62..c4bb5872bf6ff1006155446ca1b16e6a9365239f 100755 (executable)
@@ -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;
        }