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
|
@ -1532,7 +1532,7 @@ PHP_INI_END()
|
|||
*/
|
||||
static void php_cgi_globals_ctor(php_cgi_globals_struct *php_cgi_globals)
|
||||
{
|
||||
#ifdef ZTS
|
||||
#if defined(ZTS) && defined(PHP_WIN32)
|
||||
ZEND_TSRMLS_CACHE_UPDATE();
|
||||
#endif
|
||||
php_cgi_globals->rfc2616_headers = 0;
|
||||
|
@ -1793,7 +1793,9 @@ int main(int argc, char *argv[])
|
|||
#ifdef ZTS
|
||||
tsrm_startup(1, 1, 0, NULL);
|
||||
(void)ts_resource(0);
|
||||
# ifdef PHP_WIN32
|
||||
ZEND_TSRMLS_CACHE_UPDATE();
|
||||
# endif
|
||||
#endif
|
||||
|
||||
zend_signal_startup();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue