From: Bob Weinand Date: Sun, 26 Oct 2014 22:33:54 +0000 (+0100) Subject: Do not execute anything after quit or clean command X-Git-Tag: php-5.6.3RC1~37 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=50756b515c76bb9c43a01bfce03207906f596005;p=php Do not execute anything after quit or clean command --- diff --git a/sapi/phpdbg/phpdbg_prompt.c b/sapi/phpdbg/phpdbg_prompt.c index fd4af2c3cd..5e2cc03d50 100644 --- a/sapi/phpdbg/phpdbg_prompt.c +++ b/sapi/phpdbg/phpdbg_prompt.c @@ -1438,6 +1438,10 @@ void phpdbg_execute_ex(zend_op_array *op_array TSRMLS_DC) /* {{{ */ } #endif + if ((PHPDBG_G(flags) & (PHPDBG_IS_STOPPING | PHPDBG_IS_RUNNING)) == PHPDBG_IS_STOPPING) { + zend_bailout(); + } + EG(in_execution) = 1; #if PHP_VERSION_ID >= 50500