Skip to content

Commit cf4ee57

Browse files
committed
Fixed ZTS cache usage
1 parent 25d4af9 commit cf4ee57

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

sapi/fpm/config.m4

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -685,7 +685,7 @@ if test "$PHP_FPM" != "no"; then
685685
PHP_FPM_TRACE_FILES="fpm/fpm_trace.c fpm/fpm_trace_$fpm_trace_type.c"
686686
fi
687687

688-
PHP_FPM_CFLAGS="-I$abs_srcdir/sapi/fpm"
688+
PHP_FPM_CFLAGS="-I$abs_srcdir/sapi/fpm -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1"
689689

690690
PHP_FPM_FILES="fpm/fpm.c \
691691
fpm/fpm_children.c \

sapi/fpm/fpm/fpm_main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ static void user_config_cache_entry_dtor(zval *el)
182182

183183
#ifdef ZTS
184184
static int php_cgi_globals_id;
185-
#define CGIG(v) TSRMG(php_cgi_globals_id, php_cgi_globals_struct *, v)
185+
#define CGIG(v) ZEND_TSRMG(php_cgi_globals_id, php_cgi_globals_struct *, v)
186186
#else
187187
static php_cgi_globals_struct php_cgi_globals;
188188
#define CGIG(v) (php_cgi_globals.v)

0 commit comments

Comments
 (0)