From 4fce2ae2c64b61e5ef7cdbdb631b8d5691d1b31f Mon Sep 17 00:00:00 2001 From: Anatol Belski Date: Fri, 17 Oct 2014 15:51:21 +0200 Subject: opcache, intl, gmp, exif, com, bcmath to use static tsrmls --- ext/intl/php_intl.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'ext/intl/php_intl.c') diff --git a/ext/intl/php_intl.c b/ext/intl/php_intl.c index 2c5e74809d..15f058d2b4 100644 --- a/ext/intl/php_intl.c +++ b/ext/intl/php_intl.c @@ -893,12 +893,18 @@ zend_module_entry intl_module_entry = { /* }}} */ #ifdef COMPILE_DL_INTL +#ifdef ZTS +ZEND_TSRMLS_CACHE_DEFINE; +#endif ZEND_GET_MODULE( intl ) #endif /* {{{ intl_init_globals */ static PHP_GINIT_FUNCTION(intl) { +#if defined(COMPILE_DL_INTL) && defined(ZTS) + ZEND_TSRMLS_CACHE_UPDATE; +#endif memset( intl_globals, 0, sizeof(zend_intl_globals) ); } /* }}} */ -- cgit v1.2.1