diff options
author | Stanislav Malyshev <stas@php.net> | 2005-12-05 20:08:19 +0000 |
---|---|---|
committer | Stanislav Malyshev <stas@php.net> | 2005-12-05 20:08:19 +0000 |
commit | 1a60646023ba076d3ffeb65bed98d456e94a454c (patch) | |
tree | 0d175881566897bd02ed0b2e1959660507e609f8 | |
parent | 7a8a89f35e13be811ccb073a7e29a1d75f41c9f2 (diff) | |
download | php-git-1a60646023ba076d3ffeb65bed98d456e94a454c.tar.gz |
MF5.1: fix reallocation bug
-rwxr-xr-x | ext/spl/spl_iterators.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/spl/spl_iterators.c b/ext/spl/spl_iterators.c index 298c36eaba..34563662c4 100755 --- a/ext/spl/spl_iterators.c +++ b/ext/spl/spl_iterators.c @@ -319,7 +319,7 @@ static void spl_recursive_it_rewind_ex(spl_recursive_it_object *object, zval *zt zend_call_method_with_0_params(&zthis, object->ce, &object->endChildren, "endchildren", NULL); } } - erealloc(object->iterators, sizeof(spl_sub_iterator)); + object->iterators = erealloc(object->iterators, sizeof(spl_sub_iterator)); object->iterators[0].state = RS_START; sub_iter = object->iterators[0].iterator; if (sub_iter->funcs->rewind) { |