cvs: php-src(PHP_5_1) /ext/spl spl_iterators.c
| From: | Marcus Boerger | Date: | Tue, 01 Nov 2005 21:18:24 +0000 |
| Subject: | cvs: php-src(PHP_5_1) /ext/spl spl_iterators.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-34951@lists.php.net to get a copy of this message | ||
helly Tue Nov 1 16:18:24 2005 EDT
Modified files: (Branch: PHP_5_1)
/php-src/ext/spl spl_iterators.c
Log:
- MFH the iterator base interface is Traversable not IteratorAggregate
http://cvs.php.net/diff.php/php-src/ext/spl/spl_iterators.c?r1=1.73.2.4&r2=1.73.2.5&ty=u
Index: php-src/ext/spl/spl_iterators.c
diff -u php-src/ext/spl/spl_iterators.c:1.73.2.4 php-src/ext/spl/spl_iterators.c:1.73.2.5
--- php-src/ext/spl/spl_iterators.c:1.73.2.4 Wed Oct 5 17:59:13 2005
+++ php-src/ext/spl/spl_iterators.c Tue Nov 1 16:18:24 2005
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: spl_iterators.c,v 1.73.2.4 2005/10/05 21:59:13 helly Exp $ */
+/* $Id: spl_iterators.c,v 1.73.2.5 2005/11/01 21:18:24 helly Exp $ */
#ifdef HAVE_CONFIG_H
# include "config.h"
@@ -2048,7 +2048,7 @@
}
/* }}} */
-/* {{{ int iterator_count(IteratorAggregate it)
+/* {{{ int iterator_count(Travesable it)
Count the elements in an iterator */
PHP_FUNCTION(iterator_count)
{
@@ -2056,7 +2056,7 @@
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;
}