]> granicus.if.org Git - php/commitdiff
Fixed bug #80377
authorNikita Popov <nikita.ppv@gmail.com>
Tue, 24 Nov 2020 14:52:41 +0000 (15:52 +0100)
committerNikita Popov <nikita.ppv@gmail.com>
Tue, 24 Nov 2020 14:52:41 +0000 (15:52 +0100)
Use $PHP_THREAD_SAFETY instead of $enable_zts to check for ZTS.
This variable is also available for phpize builds, while enable_zts
is only present for in-tree builds.

NEWS
ext/opcache/config.m4
ext/session/config.m4

diff --git a/NEWS b/NEWS
index 1e2478cef9765ded09e227f3d7ed7bc7220fb2cf..095c0efce8f4745a3fd0608d957000588fd1684f 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -16,6 +16,7 @@ PHP                                                                        NEWS
 - Opcache:
   . Fixed bug #80404 (Incorrect range inference result when division results
     in float). (Nikita)
+  . Fixed bug #80377 (Opcache misses executor_globals). (Nikita)
 
 - Standard:
   . Fixed bug #80366 (Return Value of zend_fstat() not Checked). (sagpant, cmb)
index 054cd28c02475da269c0809bf25d6ec21c7467a9..93d72fb73d19b29e1953226132950baf5b4962ef 100644 (file)
@@ -66,7 +66,7 @@ if test "$PHP_OPCACHE" != "no"; then
       esac
     fi
 
-    if test "$enable_zts" = "yes"; then
+    if test "$PHP_THREAD_SAFETY" = "yes"; then
       DASM_FLAGS="$DASM_FLAGS -D ZTS=1"
     fi
 
index 7abc8813b72aee13adb08936be9eb53311b3fb31..da31bbde86cc9a678f3058291fb5bcc2ac2a790b 100644 (file)
@@ -31,7 +31,7 @@ if test "$PHP_MM" != "no"; then
     AC_MSG_ERROR(cannot find mm library)
   fi
 
-  if test "$enable_zts" = "yes"; then
+  if test "$PHP_THREAD_SAFETY" = "yes"; then
     dnl The mm library is not thread-safe, and mod_mm.c refuses to compile.
     AC_MSG_ERROR(--with-mm cannot be combined with --enable-zts)
   fi