diff options
Diffstat (limited to 'ext/opcache/ZendAccelerator.c')
| -rw-r--r-- | ext/opcache/ZendAccelerator.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/ext/opcache/ZendAccelerator.c b/ext/opcache/ZendAccelerator.c index 34b5b47808..486cb39a17 100644 --- a/ext/opcache/ZendAccelerator.c +++ b/ext/opcache/ZendAccelerator.c @@ -90,6 +90,9 @@ ZEND_EXTENSION(); zend_accel_globals accel_globals; #else int accel_globals_id; +#if defined(COMPILE_DL_OPCACHE) +ZEND_TSRMLS_CACHE_DEFINE; +#endif #endif /* Points to the structure shared across all PHP processes */ @@ -2232,6 +2235,9 @@ static int zend_accel_init_shm(TSRMLS_D) static void accel_globals_ctor(zend_accel_globals *accel_globals TSRMLS_DC) { +#if defined(COMPILE_DL_OPCACHE) && defined(ZTS) + ZEND_TSRMLS_CACHE_UPDATE; +#endif memset(accel_globals, 0, sizeof(zend_accel_globals)); zend_hash_init(&accel_globals->function_table, zend_hash_num_elements(CG(function_table)), NULL, ZEND_FUNCTION_DTOR, 1); zend_accel_copy_internal_functions(TSRMLS_C); |
