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

index fef9dab0dd16f203c309cc53df35522f678a27df..3441aa7ddfc862d5c809f9fea1d3266dda7d09f3 100755 (executable)
@@ -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;
        }