From 8122bee65466297ec8cbb7a6a6f55331823f28c8 Mon Sep 17 00:00:00 2001 From: Anatol Belski Date: Wed, 17 Dec 2014 10:58:31 +0100 Subject: [PATCH] enable static tsrmls cache in the embed SAPI --- sapi/embed/config.m4 | 2 +- sapi/embed/config.w32 | 2 +- 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"); } -- 2.40.0