diff options
author | Remi Collet <remi@remirepo.net> | 2021-01-05 16:17:10 +0100 |
---|---|---|
committer | Remi Collet <remi@remirepo.net> | 2021-01-05 16:17:10 +0100 |
commit | caf1d2fe6962dfeb691e3b9a9b35a7a54f0a8a42 (patch) | |
tree | 5386b42f504d6ae900245ffa23aec2a16a19c2ef /php-8.0.0-phpinfo.patch | |
parent | 6936a4b27d6b6d08a798800fcad11ffbdb3d2dea (diff) |
Update to 8.0.1 - http://www.php.net/releases/8_0_1.phpv8.0.1
Diffstat (limited to 'php-8.0.0-phpinfo.patch')
-rw-r--r-- | php-8.0.0-phpinfo.patch | 88 |
1 files changed, 81 insertions, 7 deletions
diff --git a/php-8.0.0-phpinfo.patch b/php-8.0.0-phpinfo.patch index e86af79..391d996 100644 --- a/php-8.0.0-phpinfo.patch +++ b/php-8.0.0-phpinfo.patch @@ -5,12 +5,86 @@ The available extensions are not related to this command. Replace full GCC name by gcc in php -v output + +Also apply + +From 9bf43c45908433d382f0499d529849172d0d8206 Mon Sep 17 00:00:00 2001 +From: Remi Collet <remi@remirepo.net> +Date: Mon, 28 Dec 2020 08:33:09 +0100 +Subject: [PATCH] rename COMPILER and ARCHITECTURE macro (too generic) + +--- + configure.ac | 4 ++-- + ext/standard/info.c | 8 ++++---- + sapi/cli/php_cli.c | 8 ++++---- + win32/build/confutils.js | 10 +++++----- + 4 files changed, 15 insertions(+), 15 deletions(-) + +diff --git a/configure.ac b/configure.ac +index 9d9c8b155b07..143dc061346b 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -1289,10 +1289,10 @@ if test -n "${PHP_BUILD_PROVIDER}"; then + AC_DEFINE_UNQUOTED(PHP_BUILD_PROVIDER,"$PHP_BUILD_PROVIDER",[build provider]) + fi + if test -n "${PHP_BUILD_COMPILER}"; then +- AC_DEFINE_UNQUOTED(COMPILER,"$PHP_BUILD_COMPILER",[used compiler for build]) ++ AC_DEFINE_UNQUOTED(PHP_BUILD_COMPILER,"$PHP_BUILD_COMPILER",[used compiler for build]) + fi + if test -n "${PHP_BUILD_ARCH}"; then +- AC_DEFINE_UNQUOTED(ARCHITECTURE,"$PHP_BUILD_ARCH",[build architecture]) ++ AC_DEFINE_UNQUOTED(PHP_BUILD_ARCH,"$PHP_BUILD_ARCH",[build architecture]) + fi + + PHP_SUBST_OLD(PHP_INSTALLED_SAPIS) +diff --git a/ext/standard/info.c b/ext/standard/info.c +index 153cb6cde014..8ceef31d9fe4 100644 +--- a/ext/standard/info.c ++++ b/ext/standard/info.c +@@ -798,11 +798,11 @@ PHPAPI ZEND_COLD void php_print_info(int flag) + #ifdef PHP_BUILD_PROVIDER + php_info_print_table_row(2, "Build Provider", PHP_BUILD_PROVIDER); + #endif +-#ifdef COMPILER +- php_info_print_table_row(2, "Compiler", COMPILER); ++#ifdef PHP_BUILD_COMPILER ++ php_info_print_table_row(2, "Compiler", PHP_BUILD_COMPILER); + #endif +-#ifdef ARCHITECTURE +- php_info_print_table_row(2, "Architecture", ARCHITECTURE); ++#ifdef PHP_BUILD_ARCH ++ php_info_print_table_row(2, "Architecture", PHP_BUILD_ARCH); + #endif + #ifdef CONFIGURE_COMMAND + php_info_print_table_row(2, "Configure Command", CONFIGURE_COMMAND ); +diff --git a/sapi/cli/php_cli.c b/sapi/cli/php_cli.c +index 5092fb0ffd68..9d296acec631 100644 +--- a/sapi/cli/php_cli.c ++++ b/sapi/cli/php_cli.c +@@ -640,12 +640,12 @@ static int do_cli(int argc, char **argv) /* {{{ */ + #else + "NTS " + #endif +-#ifdef COMPILER +- COMPILER ++#ifdef PHP_BUILD_COMPILER ++ PHP_BUILD_COMPILER + " " + #endif +-#ifdef ARCHITECTURE +- ARCHITECTURE ++#ifdef PHP_BUILD_ARCH ++ PHP_BUILD_ARCH + " " + #endif + #if ZEND_DEBUG + diff -up ./ext/standard/info.c.phpinfo ./ext/standard/info.c --- ./ext/standard/info.c.phpinfo 2020-07-21 10:49:31.000000000 +0200 +++ ./ext/standard/info.c 2020-07-21 11:41:56.295633523 +0200 @@ -804,9 +804,6 @@ PHPAPI ZEND_COLD void php_print_info(int - #ifdef ARCHITECTURE - php_info_print_table_row(2, "Architecture", ARCHITECTURE); + #ifdef PHP_BUILD_ARCH + php_info_print_table_row(2, "Architecture", PHP_BUILD_ARCH); #endif -#ifdef CONFIGURE_COMMAND - php_info_print_table_row(2, "Configure Command", CONFIGURE_COMMAND ); @@ -32,13 +106,13 @@ diff -up ./ext/standard/tests/general_functions/phpinfo.phpt.phpinfo ./ext/stand diff -up ./sapi/cli/php_cli.c.phpinfo ./sapi/cli/php_cli.c --- ./sapi/cli/php_cli.c.phpinfo 2020-07-21 11:43:38.812475300 +0200 +++ ./sapi/cli/php_cli.c 2020-07-21 11:43:45.783464540 +0200 -@@ -643,8 +643,7 @@ static int do_cli(int argc, char **argv) +@@ -641,8 +641,7 @@ static int do_cli(int argc, char **argv) "NTS " #endif - #ifdef COMPILER -- COMPILER + #ifdef PHP_BUILD_COMPILER +- PHP_BUILD_COMPILER - " " + "gcc " #endif - #ifdef ARCHITECTURE - ARCHITECTURE + #ifdef PHP_BUILD_ARCH + PHP_BUILD_ARCH |