@@ -45,27 +45,28 @@ diff --git a/ext/opcache/config.m4 b/ext/opcache/config.m4
4545index 2a83fa2455..7b3b37182e 100644
4646--- a/ext/opcache/config.m4
4747+++ b/ext/opcache/config.m4
48- @@ -21 ,7 +21 ,8 @@ PHP_ARG_ENABLE([opcache-jit],
48+ @@ -27 ,7 +27 ,8 @@
4949 if test "$PHP_OPCACHE" != "no"; then
50-
50+
5151 dnl Always build as shared extension
5252- ext_shared=yes
5353+ dnl why?
5454+ dnl ext_shared=yes
55-
55+
5656 if test "$PHP_HUGE_CODE_PAGES" = "yes"; then
5757 AC_DEFINE(HAVE_HUGE_CODE_PAGES, 1, [Define to enable copying PHP CODE pages into HUGE PAGES (experimental)])
58- @@ -327,7 +328,9 @@ int main() {
59- shared_alloc_mmap.c \
60- shared_alloc_posix.c \
61- $ZEND_JIT_SRC,
62- - shared,,"-Wno-implicit-fallthrough -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1",,yes)
63- + $ext_shared,,"-Wno-implicit-fallthrough -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1",,yes)
58+ @@ -319,8 +320,10 @@
59+ shared_alloc_mmap.c \
60+ shared_alloc_posix.c \
61+ $ZEND_JIT_SRC,
62+ - shared,,"$PHP_OPCACHE_CFLAGS -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1",,yes)
63+ + $ext_shared,,"$PHP_OPCACHE_CFLAGS -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1",,yes)
64+
65+ + AC_DEFINE(HAVE_OPCACHE, 1, [opcache enabled])
6466+
65- + AC_DEFINE(HAVE_OPCACHE, 1, [opcache enabled])
66-
6767 PHP_ADD_EXTENSION_DEP(opcache, pcre)
68-
68+
69+ if test "$have_shm_ipc" != "yes" && test "$have_shm_mmap_posix" != "yes" && test "$have_shm_mmap_anon" != "yes"; then
6970diff --git a/ext/opcache/config.w32 b/ext/opcache/config.w32
7071index 764a2edaab..95427090ce 100644
7172--- a/ext/opcache/config.w32
0 commit comments