]> granicus.if.org Git - php/commitdiff
extend condition
authorAnatol Belski <ab@php.net>
Sat, 27 May 2017 11:30:55 +0000 (13:30 +0200)
committerAnatol Belski <ab@php.net>
Sat, 27 May 2017 11:30:55 +0000 (13:30 +0200)
sapi/cli/php_cli.c

index ed66a8f9409462c7c22ce4f697ac793cc17e39b5..0ff8b4103f18d32a7226ef4c7f5d5bd70c9261f4 100644 (file)
@@ -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