mirror of
https://github.com/php/php-src.git
synced 2025-08-16 14:08:47 +02:00
extend condition
This commit is contained in:
parent
225f6cc11f
commit
38ee9f7c0d
1 changed files with 1 additions and 1 deletions
|
@ -676,7 +676,7 @@ static int do_cli(int argc, char **argv) /* {{{ */
|
||||||
char *script_file=NULL, *translated_path = NULL;
|
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)
|
#if defined(PHP_WIN32) && !defined(PHP_CLI_WIN32_NO_CONSOLE) && (HAVE_LIBREADLINE || HAVE_LIBEDIT) && !defined(COMPILE_DL_READLINE)
|
||||||
DWORD pl[1];
|
DWORD pl[1];
|
||||||
int interactive = GetConsoleProcessList(pl, 1) == 1;
|
int interactive = (GetConsoleProcessList(pl, 1) == 1) && !IsDebuggerPresent();
|
||||||
#else
|
#else
|
||||||
int interactive=0;
|
int interactive=0;
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue