Avoid reinitailization of ZTS cache pointer. Initialize it once in TSRM.c

This commit is contained in:
Dmitry Stogov 2019-03-12 17:35:50 +03:00
parent 7139c381f1
commit 04b67bac32
12 changed files with 15 additions and 15 deletions

View file

@ -1296,9 +1296,6 @@ out:
static int php_cli_server_request_ctor(php_cli_server_request *req) /* {{{ */
{
#ifdef ZTS
ZEND_TSRMLS_CACHE_UPDATE();
#endif
req->protocol_version = 0;
req->request_uri = NULL;
req->request_uri_len = 0;