mirror of
https://github.com/php/php-src.git
synced 2025-08-18 23:18:56 +02:00
MF5.1: fix reallocation bug
This commit is contained in:
parent
7a8a89f35e
commit
1a60646023
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue