From: Anatol Belski Date: Tue, 21 Oct 2014 09:46:32 +0000 (+0200) Subject: start sigio watcher only for run and eval for now X-Git-Tag: php-5.6.3RC1~51^2~20 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0f3448ef8bf7364e137ac52160c202e442bd4e52;p=php start sigio watcher only for run and eval for now there myght be more needing that --- diff --git a/phpdbg_prompt.c b/phpdbg_prompt.c index 20de859f03..d72b1d5aa1 100644 --- a/phpdbg_prompt.c +++ b/phpdbg_prompt.c @@ -39,6 +39,7 @@ #include "phpdbg_lexer.h" #include "phpdbg_parser.h" #include "phpdbg_wait.h" +#include "phpdbg_eol.h" ZEND_EXTERN_MODULE_GLOBALS(phpdbg); @@ -1205,7 +1206,8 @@ int phpdbg_interactive(zend_bool allow_async_unsafe TSRMLS_DC) /* {{{ */ phpdbg_activate_err_buf(1 TSRMLS_CC); #ifdef PHP_WIN32 - if (PHPDBG_G(flags) & PHPDBG_IS_REMOTE) { +#define PARA ((phpdbg_param_t *)stack.next)->type + if (PHPDBG_G(flags) & PHPDBG_IS_REMOTE && (RUN_PARAM == PARA || EVAL_PARAM == PARA)) { sigio_watcher_start(); } #endif @@ -1234,9 +1236,10 @@ int phpdbg_interactive(zend_bool allow_async_unsafe TSRMLS_DC) /* {{{ */ phpdbg_activate_err_buf(0 TSRMLS_CC); phpdbg_free_err_buf(TSRMLS_C); #ifdef PHP_WIN32 - if (PHPDBG_G(flags) & PHPDBG_IS_REMOTE) { + if (PHPDBG_G(flags) & PHPDBG_IS_REMOTE && (RUN_PARAM == PARA || EVAL_PARAM == PARA)) { sigio_watcher_stop(); } +#undef PARA #endif } @@ -1577,5 +1580,7 @@ PHPDBG_COMMAND(eol) /* {{{ */ phpdbg_default_switch_case(); } + + return SUCCESS; } /* }}} */