|
|
ce9965 |
|
|
|
ce9965 |
Drop "Configure Command" from phpinfo as it doesn't
|
|
|
ce9965 |
provide any useful information.
|
|
|
ce9965 |
The available extensions are not related to this command.
|
|
|
ce9965 |
|
|
|
ce9965 |
Replace full GCC name by gcc in php -v output
|
|
|
ce9965 |
|
|
|
ce9965 |
|
|
|
ce9965 |
Also apply
|
|
|
ce9965 |
|
|
|
ce9965 |
From 9bf43c45908433d382f0499d529849172d0d8206 Mon Sep 17 00:00:00 2001
|
|
|
ce9965 |
From: Remi Collet <remi@remirepo.net>
|
|
|
ce9965 |
Date: Mon, 28 Dec 2020 08:33:09 +0100
|
|
|
ce9965 |
Subject: [PATCH] rename COMPILER and ARCHITECTURE macro (too generic)
|
|
|
ce9965 |
|
|
|
ce9965 |
---
|
|
|
ce9965 |
configure.ac | 4 ++--
|
|
|
ce9965 |
ext/standard/info.c | 8 ++++----
|
|
|
ce9965 |
sapi/cli/php_cli.c | 8 ++++----
|
|
|
ce9965 |
win32/build/confutils.js | 10 +++++-----
|
|
|
ce9965 |
4 files changed, 15 insertions(+), 15 deletions(-)
|
|
|
ce9965 |
|
|
|
ce9965 |
diff --git a/configure.ac b/configure.ac
|
|
|
ce9965 |
index 9d9c8b155b07..143dc061346b 100644
|
|
|
ce9965 |
--- a/configure.ac
|
|
|
ce9965 |
+++ b/configure.ac
|
|
|
ce9965 |
@@ -1289,10 +1289,10 @@ if test -n "${PHP_BUILD_PROVIDER}"; then
|
|
|
ce9965 |
AC_DEFINE_UNQUOTED(PHP_BUILD_PROVIDER,"$PHP_BUILD_PROVIDER",[build provider])
|
|
|
ce9965 |
fi
|
|
|
ce9965 |
if test -n "${PHP_BUILD_COMPILER}"; then
|
|
|
ce9965 |
- AC_DEFINE_UNQUOTED(COMPILER,"$PHP_BUILD_COMPILER",[used compiler for build])
|
|
|
ce9965 |
+ AC_DEFINE_UNQUOTED(PHP_BUILD_COMPILER,"$PHP_BUILD_COMPILER",[used compiler for build])
|
|
|
ce9965 |
fi
|
|
|
ce9965 |
if test -n "${PHP_BUILD_ARCH}"; then
|
|
|
ce9965 |
- AC_DEFINE_UNQUOTED(ARCHITECTURE,"$PHP_BUILD_ARCH",[build architecture])
|
|
|
ce9965 |
+ AC_DEFINE_UNQUOTED(PHP_BUILD_ARCH,"$PHP_BUILD_ARCH",[build architecture])
|
|
|
ce9965 |
fi
|
|
|
ce9965 |
|
|
|
ce9965 |
PHP_SUBST_OLD(PHP_INSTALLED_SAPIS)
|
|
|
ce9965 |
diff --git a/ext/standard/info.c b/ext/standard/info.c
|
|
|
ce9965 |
index 153cb6cde014..8ceef31d9fe4 100644
|
|
|
ce9965 |
--- a/ext/standard/info.c
|
|
|
ce9965 |
+++ b/ext/standard/info.c
|
|
|
ce9965 |
@@ -798,11 +798,11 @@ PHPAPI ZEND_COLD void php_print_info(int flag)
|
|
|
ce9965 |
#ifdef PHP_BUILD_PROVIDER
|
|
|
ce9965 |
php_info_print_table_row(2, "Build Provider", PHP_BUILD_PROVIDER);
|
|
|
ce9965 |
#endif
|
|
|
ce9965 |
-#ifdef COMPILER
|
|
|
ce9965 |
- php_info_print_table_row(2, "Compiler", COMPILER);
|
|
|
ce9965 |
+#ifdef PHP_BUILD_COMPILER
|
|
|
ce9965 |
+ php_info_print_table_row(2, "Compiler", PHP_BUILD_COMPILER);
|
|
|
ce9965 |
#endif
|
|
|
ce9965 |
-#ifdef ARCHITECTURE
|
|
|
ce9965 |
- php_info_print_table_row(2, "Architecture", ARCHITECTURE);
|
|
|
ce9965 |
+#ifdef PHP_BUILD_ARCH
|
|
|
ce9965 |
+ php_info_print_table_row(2, "Architecture", PHP_BUILD_ARCH);
|
|
|
ce9965 |
#endif
|
|
|
ce9965 |
#ifdef CONFIGURE_COMMAND
|
|
|
ce9965 |
php_info_print_table_row(2, "Configure Command", CONFIGURE_COMMAND );
|
|
|
ce9965 |
diff --git a/sapi/cli/php_cli.c b/sapi/cli/php_cli.c
|
|
|
ce9965 |
index 5092fb0ffd68..9d296acec631 100644
|
|
|
ce9965 |
--- a/sapi/cli/php_cli.c
|
|
|
ce9965 |
+++ b/sapi/cli/php_cli.c
|
|
|
ce9965 |
@@ -640,12 +640,12 @@ static int do_cli(int argc, char **argv) /* {{{ */
|
|
|
ce9965 |
#else
|
|
|
ce9965 |
"NTS "
|
|
|
ce9965 |
#endif
|
|
|
ce9965 |
-#ifdef COMPILER
|
|
|
ce9965 |
- COMPILER
|
|
|
ce9965 |
+#ifdef PHP_BUILD_COMPILER
|
|
|
ce9965 |
+ PHP_BUILD_COMPILER
|
|
|
ce9965 |
" "
|
|
|
ce9965 |
#endif
|
|
|
ce9965 |
-#ifdef ARCHITECTURE
|
|
|
ce9965 |
- ARCHITECTURE
|
|
|
ce9965 |
+#ifdef PHP_BUILD_ARCH
|
|
|
ce9965 |
+ PHP_BUILD_ARCH
|
|
|
ce9965 |
" "
|
|
|
ce9965 |
#endif
|
|
|
ce9965 |
#if ZEND_DEBUG
|
|
|
ce9965 |
|
|
|
ce9965 |
diff -up ./ext/standard/info.c.phpinfo ./ext/standard/info.c
|
|
|
ce9965 |
--- ./ext/standard/info.c.phpinfo 2020-07-21 10:49:31.000000000 +0200
|
|
|
ce9965 |
+++ ./ext/standard/info.c 2020-07-21 11:41:56.295633523 +0200
|
|
|
ce9965 |
@@ -804,9 +804,6 @@ PHPAPI ZEND_COLD void php_print_info(int
|
|
|
ce9965 |
#ifdef PHP_BUILD_ARCH
|
|
|
ce9965 |
php_info_print_table_row(2, "Architecture", PHP_BUILD_ARCH);
|
|
|
ce9965 |
#endif
|
|
|
ce9965 |
-#ifdef CONFIGURE_COMMAND
|
|
|
ce9965 |
- php_info_print_table_row(2, "Configure Command", CONFIGURE_COMMAND );
|
|
|
ce9965 |
-#endif
|
|
|
ce9965 |
|
|
|
ce9965 |
if (sapi_module.pretty_name) {
|
|
|
ce9965 |
php_info_print_table_row(2, "Server API", sapi_module.pretty_name );
|
|
|
ce9965 |
diff -up ./ext/standard/tests/general_functions/phpinfo.phpt.phpinfo ./ext/standard/tests/general_functions/phpinfo.phpt
|
|
|
ce9965 |
--- ./ext/standard/tests/general_functions/phpinfo.phpt.phpinfo 2020-07-21 10:49:31.000000000 +0200
|
|
|
ce9965 |
+++ ./ext/standard/tests/general_functions/phpinfo.phpt 2020-07-21 11:41:56.296633522 +0200
|
|
|
ce9965 |
@@ -17,7 +17,6 @@ PHP Version => %s
|
|
|
ce9965 |
|
|
|
ce9965 |
System => %s
|
|
|
ce9965 |
Build Date => %s%a
|
|
|
ce9965 |
-Configure Command => %s
|
|
|
ce9965 |
Server API => Command Line Interface
|
|
|
ce9965 |
Virtual Directory Support => %s
|
|
|
ce9965 |
Configuration File (php.ini) Path => %s
|
|
|
ce9965 |
diff -up ./sapi/cli/php_cli.c.phpinfo ./sapi/cli/php_cli.c
|
|
|
ce9965 |
--- ./sapi/cli/php_cli.c.phpinfo 2020-07-21 11:43:38.812475300 +0200
|
|
|
ce9965 |
+++ ./sapi/cli/php_cli.c 2020-07-21 11:43:45.783464540 +0200
|
|
|
ce9965 |
@@ -641,8 +641,7 @@ static int do_cli(int argc, char **argv)
|
|
|
ce9965 |
"NTS "
|
|
|
ce9965 |
#endif
|
|
|
ce9965 |
#ifdef PHP_BUILD_COMPILER
|
|
|
ce9965 |
- PHP_BUILD_COMPILER
|
|
|
ce9965 |
- " "
|
|
|
ce9965 |
+ "gcc "
|
|
|
ce9965 |
#endif
|
|
|
ce9965 |
#ifdef PHP_BUILD_ARCH
|
|
|
ce9965 |
PHP_BUILD_ARCH
|