mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Avoid reinitailization of ZTS cache pointer. Initialize it once in TSRM.c
This commit is contained in:
parent
7139c381f1
commit
04b67bac32
12 changed files with 15 additions and 15 deletions
|
@ -56,9 +56,6 @@ static void _type_dtor(zval *zv)
|
|||
|
||||
static void sapi_globals_ctor(sapi_globals_struct *sapi_globals)
|
||||
{
|
||||
#ifdef ZTS
|
||||
ZEND_TSRMLS_CACHE_UPDATE();
|
||||
#endif
|
||||
memset(sapi_globals, 0, sizeof(*sapi_globals));
|
||||
zend_hash_init_ex(&sapi_globals->known_post_content_types, 8, NULL, _type_dtor, 1, 0);
|
||||
php_setup_sapi_content_types();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue