[php-src] master: Fixed CPU detection

From: Date: Tue, 27 Apr 2021 20:00:26 +0000
Subject: [php-src] master: Fixed CPU detection
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-115902@lists.php.net to get a copy of this message
Author: Dmitry Stogov (dstogov) Date: 2021-04-27T23:00:09+03:00 Commit: https://github.com/php/php-src/commit/721bd973f9804fd37456885f55a704eea80e9e4a Raw diff: https://github.com/php/php-src/commit/721bd973f9804fd37456885f55a704eea80e9e4a.diff Fixed CPU detection Changed paths: M ext/opcache/config.m4 M ext/pcre/config0.m4 Diff: diff --git a/ext/opcache/config.m4 b/ext/opcache/config.m4 index 27882c6a764f..633618e88549 100644 --- a/ext/opcache/config.m4 +++ b/ext/opcache/config.m4 @@ -29,7 +29,7 @@ if test "$PHP_OPCACHE" != "no"; then if test "$PHP_OPCACHE_JIT" = "yes"; then case $host_cpu in - i[34567]86*|x86*) + i[[34567]]86*|x86*) ;; *) AC_MSG_WARN([JIT not supported by host architecture]) @@ -52,7 +52,7 @@ if test "$PHP_OPCACHE" != "no"; then DASM_FLAGS="-D X64=1" DASM_ARCH="x86" ;; - i[34567]86*) + i[[34567]]86*) DASM_ARCH="x86" ;; x86*) diff --git a/ext/pcre/config0.m4 b/ext/pcre/config0.m4 index 0f1944c50158..d7540fd7937b 100644 --- a/ext/pcre/config0.m4 +++ b/ext/pcre/config0.m4 @@ -40,7 +40,7 @@ if test "$PHP_EXTERNAL_PCRE" != "no"; then [ AC_CANONICAL_HOST case $host_cpu in - arm*|i[34567]86|x86_64|mips*|powerpc*|sparc) + arm*|i[[34567]]86|x86_64|mips*|powerpc*|sparc) ac_cv_have_pcre2_jit=yes ;; *)

« previous php.cvs (#115902) next »