From 16f0329a52832b69c7ca418e47495135817a61d4 Mon Sep 17 00:00:00 2001 From: Marcus Boerger Date: Sun, 6 Mar 2005 23:07:43 +0000 Subject: - Fix problem with exception in other methods, too --- ext/spl/spl_iterators.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/spl/spl_iterators.c b/ext/spl/spl_iterators.c index 62964b02bf..bdf8d247d3 100755 --- a/ext/spl/spl_iterators.c +++ b/ext/spl/spl_iterators.c @@ -168,7 +168,7 @@ static void spl_recursive_it_move_forward_ex(spl_recursive_it_object *object, zv zend_object_iterator *sub_iter; int has_children; - while (1) { + while (!EG(exception)) { next_step: iterator = object->iterators[object->level].iterator; switch (object->iterators[object->level].state) { -- cgit v1.2.1