summaryrefslogtreecommitdiff
path: root/sapi/cli/php_cli.c
diff options
context:
space:
mode:
authorAnatol Belski <ab@php.net>2017-07-03 21:58:51 +0200
committerAnatol Belski <ab@php.net>2017-07-03 21:59:31 +0200
commit8871d2d12eb6b516d6685a83ca8530af6d1557f8 (patch)
treebfcb1bcbbf36512f2e68eb1bb83e1469d4197242 /sapi/cli/php_cli.c
parent55cd4e859b2d4a405be112452ed76d07ff404c01 (diff)
downloadphp-git-8871d2d12eb6b516d6685a83ca8530af6d1557f8.tar.gz
Fixed bug #74849 Process is started as interactive shell in PhpStorm
Diffstat (limited to 'sapi/cli/php_cli.c')
-rw-r--r--sapi/cli/php_cli.c3
1 files changed, 1 insertions, 2 deletions
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