diff options
author | Stanislav Malyshev <stas@php.net> | 2005-12-05 19:54:47 +0000 |
---|---|---|
committer | Stanislav Malyshev <stas@php.net> | 2005-12-05 19:54:47 +0000 |
commit | 3eafc3d3297371add52b64f29874721cfc5e92ef (patch) | |
tree | e3ed5cd1a15a0ab9e3ba0fc26a244c9664467e9d | |
parent | 937e9f801d22c6542c2ab22e3c0b5c2dcce5fc17 (diff) | |
download | php-git-3eafc3d3297371add52b64f29874721cfc5e92ef.tar.gz |
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 f13ad493ab..6f1ae05bd2 100755 --- a/ext/spl/spl_iterators.c +++ b/ext/spl/spl_iterators.c @@ -317,7 +317,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) { |