Skip to content

Instantly share code, notes, and snippets.

@dstogov
Created March 12, 2019 14:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dstogov/1b55b7697b2a0d83120185cb150c0496 to your computer and use it in GitHub Desktop.
Save dstogov/1b55b7697b2a0d83120185cb150c0496 to your computer and use it in GitHub Desktop.
diff --git a/acinclude.m4 b/acinclude.m4
index cea6db87ff..59c627c883 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -919,7 +919,7 @@ AC_DEFUN([PHP_NEW_EXTENSION],[
if test "$3" != "shared" && test "$3" != "yes" && test "$4" != "cli"; then
dnl ---------------------------------------------- Static module
[PHP_]translit($1,a-z_-,A-Z__)[_SHARED]=no
- PHP_ADD_SOURCES($ext_dir,$2,$ac_extra,)
+ PHP_ADD_SOURCES($ext_dir,$2,$ac_extra -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1,)
EXT_STATIC="$EXT_STATIC $1;$ext_dir"
if test "$3" != "nocli"; then
EXT_CLI_STATIC="$EXT_CLI_STATIC $1;$ext_dir"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment