From: krakjoe Date: Mon, 18 Nov 2013 12:06:06 +0000 (+0000) Subject: destroy displayed exception and reset eg X-Git-Tag: php-5.6.0alpha1~110^2~241 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=858629b600a4d4a613d13fe1c8d002cb8064fc1f;p=php destroy displayed exception and reset eg --- diff --git a/phpdbg_prompt.c b/phpdbg_prompt.c index c365345a9c..135d97fff0 100644 --- a/phpdbg_prompt.c +++ b/phpdbg_prompt.c @@ -447,6 +447,10 @@ static PHPDBG_COMMAND(run) /* {{{ */ */ zend_print_zval_r( EG(exception), 0 TSRMLS_CC); + + /* make sure this is dtor'd and reset */ + zval_ptr_dtor(&EG(exception)); + EG(exception) = NULL; } EG(active_op_array) = orig_op_array;