diff options
author | George Peter Banyard <girgias@php.net> | 2020-05-12 17:54:02 +0200 |
---|---|---|
committer | George Peter Banyard <girgias@php.net> | 2020-05-12 22:02:12 +0200 |
commit | 56698afb6dd0ce4c6358c44ea254324e375cff18 (patch) | |
tree | aa4a01dd79c525a4e0dcfd16a6dad76c083f4ba4 /sapi/cli/php_cli.c | |
parent | f87743de9fc07084b8fec6e3a0a8f628ee6fa372 (diff) | |
download | php-git-56698afb6dd0ce4c6358c44ea254324e375cff18.tar.gz |
Fix [-Wundef] warning in CLI SAPI
Diffstat (limited to 'sapi/cli/php_cli.c')
-rw-r--r-- | sapi/cli/php_cli.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sapi/cli/php_cli.c b/sapi/cli/php_cli.c index d80b2fb95b..a5fafda4f1 100644 --- a/sapi/cli/php_cli.c +++ b/sapi/cli/php_cli.c @@ -489,7 +489,7 @@ static void php_cli_usage(char *argv0) " %s [options] -- [args...]\n" " %s [options] -a\n" "\n" -#if (HAVE_LIBREADLINE || HAVE_LIBEDIT) && !defined(COMPILE_DL_READLINE) +#if (defined(HAVE_LIBREADLINE) || defined(HAVE_LIBEDIT)) && !defined(COMPILE_DL_READLINE) " -a Run as interactive shell\n" #else " -a Run interactively\n" @@ -641,7 +641,7 @@ static int do_cli(int argc, char **argv) /* {{{ */ case 'v': /* show php version & quit */ php_printf("PHP %s (%s) (built: %s %s) ( %s)\nCopyright (c) The PHP Group\n%s", PHP_VERSION, cli_sapi_module.name, __DATE__, __TIME__, -#if ZTS +#ifdef ZTS "ZTS " #else "NTS " @@ -871,7 +871,7 @@ static int do_cli(int argc, char **argv) /* {{{ */ #endif if (interactive) { -#if (HAVE_LIBREADLINE || HAVE_LIBEDIT) && !defined(COMPILE_DL_READLINE) +#if (defined(HAVE_LIBREADLINE) || defined(HAVE_LIBEDIT)) && !defined(COMPILE_DL_READLINE) printf("Interactive shell\n\n"); #else printf("Interactive mode enabled\n\n"); |