Skip to content

Commit 955c2e6

Browse files
authored
Autotools: Add ZEND_ENABLE_STATIC_TSRMLS_CACHE to skeleton (#14827)
This enables "Thread Safety Resource Manager Local Storage" static cache for skeleton template for Autotools build.
1 parent 27879fb commit 955c2e6

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

ext/skeleton/config.m4.in

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,5 +90,8 @@ if test "$PHP_%EXTNAMECAPS%" != "no"; then
9090
dnl In case of no dependencies
9191
AC_DEFINE(HAVE_%EXTNAMECAPS%, 1, [ Have %EXTNAME% support ])
9292

93-
PHP_NEW_EXTENSION(%EXTNAME%, %EXTNAME%.c, $ext_shared)
93+
PHP_NEW_EXTENSION([%EXTNAME%],
94+
[%EXTNAME%.c],
95+
[$ext_shared],,
96+
[-DZEND_ENABLE_STATIC_TSRMLS_CACHE=1])
9497
fi

0 commit comments

Comments
 (0)