mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +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
|
@ -476,7 +476,9 @@ php_apache_server_startup(apr_pool_t *pconf, apr_pool_t *plog, apr_pool_t *ptemp
|
|||
#ifdef ZTS
|
||||
tsrm_startup(1, 1, 0, NULL);
|
||||
(void)ts_resource(0);
|
||||
# ifdef PHP_WIN32
|
||||
ZEND_TSRMLS_CACHE_UPDATE();
|
||||
# endif
|
||||
#endif
|
||||
|
||||
zend_signal_startup();
|
||||
|
@ -574,7 +576,9 @@ static int php_handler(request_rec *r)
|
|||
#ifdef ZTS
|
||||
/* initial resource fetch */
|
||||
(void)ts_resource(0);
|
||||
# ifdef PHP_WIN32
|
||||
ZEND_TSRMLS_CACHE_UPDATE();
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#define PHPAP_INI_OFF php_apache_ini_dtor(r, parent_req);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue