com php-src: destroy displayed exception and reset eg: phpdbg_prompt.c
| From: | Bob Weinand | Date: | Mon, 18 Nov 2013 12:06:06 +0000 |
| Subject: | com php-src: destroy displayed exception and reset eg: phpdbg_prompt.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-74852@lists.php.net to get a copy of this message | ||
Commit: 858629b600a4d4a613d13fe1c8d002cb8064fc1f
Author: krakjoe <joe.watkins@live.co.uk> Mon, 18 Nov 2013 12:06:06 +0000
Parents: 57b67d71b0264143ba33d997eff918d34e8adc67
Branches: PHP-5.6
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=858629b600a4d4a613d13fe1c8d002cb8064fc1f
Log:
destroy displayed exception and reset eg
Changed paths:
M phpdbg_prompt.c
Diff:
diff --git a/phpdbg_prompt.c b/phpdbg_prompt.c
index c365345..135d97f 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;