From 92eebd012b2b12724ebb6f6e4ecbe39ec26487e7 Mon Sep 17 00:00:00 2001 From: Peter Kokot Date: Wed, 28 Aug 2024 22:19:56 +0200 Subject: [PATCH] Remove redundant HAVE_LIBREADLINE check The HAVE_LIBREADLINE is at this point only defined by Autotools and this check is for Windows only where only HAVE_LIBEDIT is defined. --- sapi/cli/php_cli.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sapi/cli/php_cli.c b/sapi/cli/php_cli.c index 840cdae378026..11214465d064c 100644 --- a/sapi/cli/php_cli.c +++ b/sapi/cli/php_cli.c @@ -830,7 +830,7 @@ static int do_cli(int argc, char **argv) /* {{{ */ goto err; } -#if defined(PHP_WIN32) && !defined(PHP_CLI_WIN32_NO_CONSOLE) && (defined(HAVE_LIBREADLINE) || defined(HAVE_LIBEDIT)) && !defined(COMPILE_DL_READLINE) +#if defined(PHP_WIN32) && !defined(PHP_CLI_WIN32_NO_CONSOLE) && defined(HAVE_LIBEDIT) && !defined(COMPILE_DL_READLINE) if (!interactive) { /* The -a option was not passed. If there is no file, it could still make sense to run interactively. The presence of a file