mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Fixed bug #74849 Process is started as interactive shell in PhpStorm
This commit is contained in:
parent
55cd4e859b
commit
8871d2d12e
3 changed files with 18 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue