summaryrefslogtreecommitdiff
path: root/sapi/embed
diff options
context:
space:
mode:
authorAnatol Belski <ab@php.net>2014-12-17 10:58:31 +0100
committerAnatol Belski <ab@php.net>2014-12-17 10:58:31 +0100
commit8122bee65466297ec8cbb7a6a6f55331823f28c8 (patch)
treebdfe52ffd799ede49807a338aec17a5ed6c11717 /sapi/embed
parentaf21b3b6dcef4ce0c04f3e8126574f5660fd0a83 (diff)
downloadphp-git-8122bee65466297ec8cbb7a6a6f55331823f28c8.tar.gz
enable static tsrmls cache in the embed SAPI
Diffstat (limited to 'sapi/embed')
-rw-r--r--sapi/embed/config.m42
-rw-r--r--sapi/embed/config.w322
2 files changed, 2 insertions, 2 deletions
diff --git a/sapi/embed/config.m4 b/sapi/embed/config.m4
index 5ffb9b39bd..5be7af48f4 100644
--- a/sapi/embed/config.m4
+++ b/sapi/embed/config.m4
@@ -23,7 +23,7 @@ if test "$PHP_EMBED" != "no"; then
;;
esac
if test "$PHP_EMBED_TYPE" != "no"; then
- PHP_SELECT_SAPI(embed, $PHP_EMBED_TYPE, php_embed.c)
+ PHP_SELECT_SAPI(embed, $PHP_EMBED_TYPE, php_embed.c, -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1)
PHP_INSTALL_HEADERS([sapi/embed/php_embed.h])
fi
AC_MSG_RESULT([$PHP_EMBED_TYPE])
diff --git a/sapi/embed/config.w32 b/sapi/embed/config.w32
index 64e44bdd94..ce41e253f0 100644
--- a/sapi/embed/config.w32
+++ b/sapi/embed/config.w32
@@ -6,6 +6,6 @@ ARG_ENABLE('embed', 'Embedded SAPI library', 'no');
var PHP_EMBED_PGO = false;
if (PHP_EMBED != "no") {
- SAPI('embed', 'php_embed.c', 'php' + PHP_VERSION + 'embed.lib');
+ SAPI('embed', 'php_embed.c', 'php' + PHP_VERSION + 'embed.lib', '/DZEND_ENABLE_STATIC_TSRMLS_CACHE=1');
PHP_INSTALL_HEADERS("sapi/embed", "php_embed.h");
}