Browse Source

extend condition

pull/2534/merge
Anatol Belski 9 years ago
parent
commit
38ee9f7c0d
  1. 2
      sapi/cli/php_cli.c

2
sapi/cli/php_cli.c

@ -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

Loading…
Cancel
Save