diff options
| author | Anatol Belski <ab@php.net> | 2014-10-17 15:51:21 +0200 |
|---|---|---|
| committer | Anatol Belski <ab@php.net> | 2014-10-17 15:51:21 +0200 |
| commit | 4fce2ae2c64b61e5ef7cdbdb631b8d5691d1b31f (patch) | |
| tree | c1e4941189f82e6575fb57de7b0d047404fd0a38 /ext/bcmath/bcmath.c | |
| parent | 5749b4a9979cd3ff85996323bed9adc1bd182f76 (diff) | |
| download | php-git-4fce2ae2c64b61e5ef7cdbdb631b8d5691d1b31f.tar.gz | |
opcache, intl, gmp, exif, com, bcmath to use static tsrmls
Diffstat (limited to 'ext/bcmath/bcmath.c')
| -rw-r--r-- | ext/bcmath/bcmath.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/ext/bcmath/bcmath.c b/ext/bcmath/bcmath.c index 7ef30cad5e..4f8938a108 100644 --- a/ext/bcmath/bcmath.c +++ b/ext/bcmath/bcmath.c @@ -127,6 +127,9 @@ zend_module_entry bcmath_module_entry = { }; #ifdef COMPILE_DL_BCMATH +#ifdef ZTS +ZEND_TSRMLS_CACHE_DEFINE; +#endif ZEND_GET_MODULE(bcmath) #endif @@ -140,6 +143,9 @@ PHP_INI_END() */ static PHP_GINIT_FUNCTION(bcmath) { +#if defined(COMPILE_DL_BCMATH) && defined(ZTS) + ZEND_TSRMLS_CACHE_UPDATE; +#endif bcmath_globals->bc_precision = 0; bc_init_numbers(TSRMLS_C); } |
