From: Bob Weinand Date: Tue, 28 Oct 2014 11:27:19 +0000 (+0100) Subject: *Always* clean up and run destructors X-Git-Tag: php-5.6.3RC1~20^2~2^2~7 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=64774c7ddbdef3844558898a50104ec6dc758b55;p=php *Always* clean up and run destructors --- diff --git a/phpdbg_prompt.c b/phpdbg_prompt.c index 73ecbcb892..262b265a2e 100644 --- a/phpdbg_prompt.c +++ b/phpdbg_prompt.c @@ -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!");