We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d32288b commit e5c273dCopy full SHA for e5c273d
sapi/cli/php_cli.c
@@ -674,7 +674,12 @@ static int do_cli(int argc, char **argv) /* {{{ */
674
char *exec_direct=NULL, *exec_run=NULL, *exec_begin=NULL, *exec_end=NULL;
675
char *arg_free=NULL, **arg_excp=&arg_free;
676
char *script_file=NULL, *translated_path = NULL;
677
+#if defined(PHP_WIN32) && !defined(PHP_CLI_WIN32_NO_CONSOLE) && (HAVE_LIBREADLINE || HAVE_LIBEDIT) && !defined(COMPILE_DL_READLINE)
678
+ DWORD pl[1];
679
+ int interactive = GetConsoleProcessList(pl, 1) == 1;
680
+#else
681
int interactive=0;
682
+#endif
683
int lineno = 0;
684
const char *param_error=NULL;
685
int hide_argv = 0;
0 commit comments