com php-src: extend condition: sapi/cli/php_cli.c

From: Date: Sat, 27 May 2017 11:30:55 +0000
Subject: com php-src: extend condition: sapi/cli/php_cli.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-97897@lists.php.net to get a copy of this message
Commit: 38ee9f7c0d3d8ff6b3d71ef77160f5a369591e7c Author: Anatol Belski <ab@php.net> Sat, 27 May 2017 13:30:55 +0200 Parents: 225f6cc11fc1d4906c574e2c9ee8c86cf9dae77b Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=38ee9f7c0d3d8ff6b3d71ef77160f5a369591e7c Log: extend condition Changed paths: M sapi/cli/php_cli.c Diff: diff --git a/sapi/cli/php_cli.c b/sapi/cli/php_cli.c index ed66a8f..0ff8b41 100644 --- a/sapi/cli/php_cli.c +++ b/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

« previous php.cvs (#97897) next »