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