From 8871d2d12eb6b516d6685a83ca8530af6d1557f8 Mon Sep 17 00:00:00 2001 From: Anatol Belski Date: Mon, 3 Jul 2017 21:58:51 +0200 Subject: Fixed bug #74849 Process is started as interactive shell in PhpStorm --- sapi/cli/php_cli.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'sapi/cli/php_cli.c') diff --git a/sapi/cli/php_cli.c b/sapi/cli/php_cli.c index 07e8a8c803..d1fa6a6d00 100644 --- a/sapi/cli/php_cli.c +++ b/sapi/cli/php_cli.c @@ -675,8 +675,7 @@ static int do_cli(int argc, char **argv) /* {{{ */ char *arg_free=NULL, **arg_excp=&arg_free; 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) && !IsDebuggerPresent(); + int interactive = php_win32_console_is_own(); #else int interactive=0; #endif -- cgit v1.2.1