summaryrefslogtreecommitdiff
path: root/sapi
diff options
context:
space:
mode:
authorXinchen Hui <laruence@gmail.com>2017-12-27 12:51:50 +0800
committerXinchen Hui <laruence@gmail.com>2017-12-27 12:51:50 +0800
commitdc3822c3431ec3229ad439c3e4e4b956218777af (patch)
tree3649fc19e178ab1ac12bf8526f99efacb71b986c /sapi
parent9cafc33ba3dcb15d062e9a26f86dd294a6f89431 (diff)
downloadphp-git-dc3822c3431ec3229ad439c3e4e4b956218777af.tar.gz
Fixed bug #75735 ([embed SAPI] Segmentation fault in sapi_register_post_entry)
Diffstat (limited to 'sapi')
-rw-r--r--sapi/embed/php_embed.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sapi/embed/php_embed.c b/sapi/embed/php_embed.c
index e444610d77..e2a27a192c 100644
--- a/sapi/embed/php_embed.c
+++ b/sapi/embed/php_embed.c
@@ -227,6 +227,7 @@ 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);