diff options
Diffstat (limited to 'ext/pcntl/pcntl.c')
| -rw-r--r-- | ext/pcntl/pcntl.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/ext/pcntl/pcntl.c b/ext/pcntl/pcntl.c index 1546e094f3..0176ef89e9 100644 --- a/ext/pcntl/pcntl.c +++ b/ext/pcntl/pcntl.c @@ -238,6 +238,9 @@ zend_module_entry pcntl_module_entry = { }; #ifdef COMPILE_DL_PCNTL +#ifdef ZTS +ZEND_TSRMLS_CACHE_DEFINE() +#endif ZEND_GET_MODULE(pcntl) #endif @@ -576,6 +579,9 @@ static void php_pcntl_register_errno_constants(INIT_FUNC_ARGS) static PHP_GINIT_FUNCTION(pcntl) { +#if defined(COMPILE_DL_PCNTL) && defined(ZTS) + ZEND_TSRMLS_CACHE_UPDATE(); +#endif memset(pcntl_globals, 0, sizeof(*pcntl_globals)); } |
