From: Dmitry Stogov Date: Wed, 8 Jun 2005 18:53:39 +0000 (+0000) Subject: Fixed exception handling in getIterator() callback (bugs #26229 & #30725) X-Git-Tag: php-5.0.5RC1~178 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5e37deccc1b4543d307b83e980d67e1104cb1894;p=php Fixed exception handling in getIterator() callback (bugs #26229 & #30725) --- diff --git a/Zend/zend_execute.c b/Zend/zend_execute.c index 661322fa13..514f47d167 100644 --- a/Zend/zend_execute.c +++ b/Zend/zend_execute.c @@ -3769,7 +3769,6 @@ int zend_fe_reset_handler(ZEND_OPCODE_HANDLER_ARGS) if (iter && !EG(exception)) { array_ptr = zend_iterator_wrap(iter TSRMLS_CC); } else { - zval_ptr_dtor(&array_ptr); FREE_OP(Ts, op1, EG(free_op1)); if (!EG(exception)) { zend_throw_exception_ex(NULL, 0 TSRMLS_CC, "Object of type %s did not create an Iterator", ce->name);