diff options
author | Anatol Belski <ab@php.net> | 2017-05-27 13:30:55 +0200 |
---|---|---|
committer | Anatol Belski <ab@php.net> | 2017-05-27 13:30:55 +0200 |
commit | 38ee9f7c0d3d8ff6b3d71ef77160f5a369591e7c (patch) | |
tree | c1fed1250c06af3f7dc7a9532f77688d4ec0b2bd /sapi/cli/php_cli.c | |
parent | 225f6cc11fc1d4906c574e2c9ee8c86cf9dae77b (diff) | |
download | php-git-38ee9f7c0d3d8ff6b3d71ef77160f5a369591e7c.tar.gz |
extend condition
Diffstat (limited to 'sapi/cli/php_cli.c')
-rw-r--r-- | sapi/cli/php_cli.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 |