summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorMarcus Boerger <helly@php.net>2005-03-31 21:49:47 (GMT)
committerMarcus Boerger <helly@php.net>2005-03-31 21:49:47 (GMT)
commit530917b463add59b8e4ca7e5ff3f32e9a99a1f78 (patch)
tree21aef40ded0653fb094082d6293dcf6815dbe747 /ext
parenta119050ebb635204ef6506e89063283c99aac5e1 (diff)
downloadphp-530917b463add59b8e4ca7e5ff3f32e9a99a1f78.tar.gz
- Make iterator_to_array() accept Traversable
Diffstat (limited to 'ext')
-rwxr-xr-xext/spl/spl_iterators.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/spl/spl_iterators.c b/ext/spl/spl_iterators.c
index e9858ea..879d357 100755
--- a/ext/spl/spl_iterators.c
+++ b/ext/spl/spl_iterators.c
@@ -1823,7 +1823,7 @@ static zend_function_entry spl_funcs_AppendIterator[] = {
{NULL, NULL, NULL}
};
-/* {{{ array iterator_to_array(IteratorAggregate it)
+/* {{{ array iterator_to_array(Traversable it)
Copy the iterator into an array */
PHP_FUNCTION(iterator_to_array)
{
@@ -1834,7 +1834,7 @@ PHP_FUNCTION(iterator_to_array)
ulong int_key;
int key_type;
- 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;
}