helly Tue Nov 1 16:17:53 2005 EDT
Modified files:
/php-src/ext/spl spl_iterators.c
Log:
- The iterator base interface is Traversable not IteratorAggregate
http://cvs.php.net/diff.php/php-src/ext/spl/spl_iterators.c?r1=1.95&r2=1.96&ty=u
Index: php-src/ext/spl/spl_iterators.c
diff -u php-src/ext/spl/spl_iterators.c:1.95
php-src/ext/spl/spl_iterators.c:1.96
--- php-src/ext/spl/spl_iterators.c:1.95 Sat Oct 29 11:44:37 2005
+++ php-src/ext/spl/spl_iterators.c Tue Nov 1 16:17:51 2005
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: spl_iterators.c,v 1.95 2005/10/29 15:44:37 helly Exp $ */
+/* $Id: spl_iterators.c,v 1.96 2005/11/01 21:17:51 helly Exp $ */
#ifdef HAVE_CONFIG_H
# include "config.h"
@@ -2380,7 +2380,7 @@
}
/* }}} */
-/* {{{ int iterator_count(IteratorAggregate it)
+/* {{{ int iterator_count(Traversable it)
Count the elements in an iterator */
PHP_FUNCTION(iterator_count)
{
@@ -2388,7 +2388,7 @@
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;
}
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php