Skip to content

Commit 8122bee

Browse files
committed
enable static tsrmls cache in the embed SAPI
1 parent af21b3b commit 8122bee

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

sapi/embed/config.m4

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ if test "$PHP_EMBED" != "no"; then
2323
;;
2424
esac
2525
if test "$PHP_EMBED_TYPE" != "no"; then
26-
PHP_SELECT_SAPI(embed, $PHP_EMBED_TYPE, php_embed.c)
26+
PHP_SELECT_SAPI(embed, $PHP_EMBED_TYPE, php_embed.c, -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1)
2727
PHP_INSTALL_HEADERS([sapi/embed/php_embed.h])
2828
fi
2929
AC_MSG_RESULT([$PHP_EMBED_TYPE])

sapi/embed/config.w32

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ ARG_ENABLE('embed', 'Embedded SAPI library', 'no');
66
var PHP_EMBED_PGO = false;
77

88
if (PHP_EMBED != "no") {
9-
SAPI('embed', 'php_embed.c', 'php' + PHP_VERSION + 'embed.lib');
9+
SAPI('embed', 'php_embed.c', 'php' + PHP_VERSION + 'embed.lib', '/DZEND_ENABLE_STATIC_TSRMLS_CACHE=1');
1010
PHP_INSTALL_HEADERS("sapi/embed", "php_embed.h");
1111
}

0 commit comments

Comments
 (0)