From 0f3448ef8bf7364e137ac52160c202e442bd4e52 Mon Sep 17 00:00:00 2001 From: Anatol Belski Date: Tue, 21 Oct 2014 11:46:32 +0200 Subject: [PATCH] start sigio watcher only for run and eval for now there myght be more needing that --- phpdbg_prompt.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) 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; } /* }}} */ -- 2.40.0