]> granicus.if.org Git - php/commitdiff
Fixed exception handling in getIterator() callback (bugs #26229 & #30725)
authorDmitry Stogov <dmitry@php.net>
Wed, 8 Jun 2005 18:53:39 +0000 (18:53 +0000)
committerDmitry Stogov <dmitry@php.net>
Wed, 8 Jun 2005 18:53:39 +0000 (18:53 +0000)
Zend/zend_execute.c

index 661322fa1339e3e164426237a5238019009c8c9e..514f47d167f22f888d2883c133ac6085b555340a 100644 (file)
@@ -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);