From 2d3bc71e89e270e90ba0886eef37ea106f010ca0 Mon Sep 17 00:00:00 2001 From: Nikita Popov Date: Tue, 4 Jun 2019 15:23:10 +0200 Subject: Reload tsrmls_id in release builds as well If TSRM is shut down and started again (something that phpdbg does), then tsrmls_id needs to be reloaded everywhere. As tsrmls_id update is a rare operation, doing that shouldn't be a problem. --- sapi/embed/php_embed.c | 1 - 1 file changed, 1 deletion(-) (limited to 'sapi/embed/php_embed.c') diff --git a/sapi/embed/php_embed.c b/sapi/embed/php_embed.c index 109d908ef2..c279c9e372 100644 --- a/sapi/embed/php_embed.c +++ b/sapi/embed/php_embed.c @@ -227,7 +227,6 @@ EMBED_SAPI_API void php_embed_shutdown(void) sapi_shutdown(); #ifdef ZTS tsrm_shutdown(); - TSRMLS_CACHE_RESET(); #endif if (php_embed_module.ini_entries) { free(php_embed_module.ini_entries); -- cgit v1.2.1