com php-src: Do not execute anything after quit or clean command: phpdbg_prompt.c

From: Date: Sun, 26 Oct 2014 22:33:54 +0000
Subject: com php-src: Do not execute anything after quit or clean command: phpdbg_prompt.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-82694@lists.php.net to get a copy of this message
Commit: f4748ff9fff3147276e4d37ff5cdfd4ca9dc1fa5 Author: Bob Weinand <bobwei9@hotmail.com> Sun, 26 Oct 2014 23:33:54 +0100 Parents: 29edee4e70f3802101d2dd28f9e8240299629e28 Branches: PHP-5.6 Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=f4748ff9fff3147276e4d37ff5cdfd4ca9dc1fa5 Log: Do not execute anything after quit or clean command Changed paths: M phpdbg_prompt.c Diff: diff --git a/phpdbg_prompt.c b/phpdbg_prompt.c index fd4af2c..5e2cc03 100644 --- a/phpdbg_prompt.c +++ b/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

« previous php.cvs (#82694) next »