Remove redundant HAVE_LIBREADLINE check (#15623)

The HAVE_LIBREADLINE is at this point only defined by Autotools and this
check is for Windows only where only HAVE_LIBEDIT is defined.
This commit is contained in:
Peter Kokot 2024-08-29 12:49:34 +02:00 committed by GitHub
parent 7edb9a07d7
commit e016e3521a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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