com php-src: fix sigint when executing: phpdbg_prompt.c
| From: | Bob Weinand | Date: | Sat, 23 Nov 2013 17:09:52 +0000 |
| Subject: | com php-src: fix sigint when executing: phpdbg_prompt.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-74681@lists.php.net to get a copy of this message | ||
Commit: b76b543cae6555f852ff5d08ca4ae17e8666589d
Author: krakjoe <joe.watkins@live.co.uk> Sat, 23 Nov 2013 17:09:52 +0000
Parents: 351a0ac761f2308097c40e5d495b44b591a990c7
Branches: PHP-5.6
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=b76b543cae6555f852ff5d08ca4ae17e8666589d
Log:
fix sigint when executing
Changed paths:
M phpdbg_prompt.c
Diff:
diff --git a/phpdbg_prompt.c b/phpdbg_prompt.c
index 0e7572b..8a6ec92 100644
--- a/phpdbg_prompt.c
+++ b/phpdbg_prompt.c
@@ -549,8 +549,10 @@ PHPDBG_COMMAND(run) /* {{{ */
zend_try {
php_output_activate(TSRMLS_C);
+ PHPDBG_G(flags) ^= PHPDBG_IS_INTERACTIVE;
zend_execute(
EG(active_op_array) TSRMLS_CC);
+ PHPDBG_G(flags) ^= PHPDBG_IS_INTERACTIVE;
php_output_deactivate(TSRMLS_C);
} zend_catch {
EG(active_op_array) = orig_op_array;