From 38ee9f7c0d3d8ff6b3d71ef77160f5a369591e7c Mon Sep 17 00:00:00 2001 From: Anatol Belski Date: Sat, 27 May 2017 13:30:55 +0200 Subject: extend condition --- sapi/cli/php_cli.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sapi/cli/php_cli.c') diff --git a/sapi/cli/php_cli.c b/sapi/cli/php_cli.c index ed66a8f940..0ff8b4103f 100644 --- a/sapi/cli/php_cli.c +++ b/sapi/cli/php_cli.c @@ -676,7 +676,7 @@ static int do_cli(int argc, char **argv) /* {{{ */ char *script_file=NULL, *translated_path = NULL; #if defined(PHP_WIN32) && !defined(PHP_CLI_WIN32_NO_CONSOLE) && (HAVE_LIBREADLINE || HAVE_LIBEDIT) && !defined(COMPILE_DL_READLINE) DWORD pl[1]; - int interactive = GetConsoleProcessList(pl, 1) == 1; + int interactive = (GetConsoleProcessList(pl, 1) == 1) && !IsDebuggerPresent(); #else int interactive=0; #endif -- cgit v1.2.1