]> granicus.if.org Git - php/commitdiff
*Always* clean up and run destructors
authorBob Weinand <bobwei9@hotmail.com>
Tue, 28 Oct 2014 11:27:19 +0000 (12:27 +0100)
committerBob Weinand <bobwei9@hotmail.com>
Tue, 28 Oct 2014 16:25:43 +0000 (17:25 +0100)
phpdbg_prompt.c

index 73ecbcb892c8d96f7a8d7e3d7529e202675f451c..262b265a2e9d075693b2759390f374f061bd49c2 100644 (file)
@@ -676,10 +676,10 @@ PHPDBG_COMMAND(run) /* {{{ */
                        EG(active_op_array) = orig_op_array;
                        EG(opline_ptr) = orig_opline;
                        EG(return_value_ptr_ptr) = orig_retval_ptr;
-
-                       phpdbg_clean(1 TSRMLS_CC);
                }
 
+               phpdbg_clean(1 TSRMLS_CC);
+
                PHPDBG_G(flags) &= ~PHPDBG_IS_RUNNING;
        } else {
                phpdbg_error("inactive", "type=\"nocontext\"", "Nothing to execute!");