com php-src: Reseet EG(active) a bit early.: Zend/zend_execut e_API.c
| From: | Dmitry Stogov | Date: | Fri, 23 Jun 2017 11:58:19 +0000 |
| Subject: | com php-src: Reseet EG(active) a bit early.: Zend/zend_execut e_API.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-98181@lists.php.net to get a copy of this message | ||
Commit: 866d3b40e9b720f74f12d451d824a27e241abf93
Author: Dmitry Stogov <dmitry@zend.com> Fri, 23 Jun 2017 14:58:19 +0300
Parents: 40ed9aaa4899dd53d5ec1483e0c05e404167a49d
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=866d3b40e9b720f74f12d451d824a27e241abf93
Log:
Reseet EG(active) a bit early.
Changed paths:
M Zend/zend_execute_API.c
Diff:
diff --git a/Zend/zend_execute_API.c b/Zend/zend_execute_API.c
index 3c453e6..fec7f73 100644
--- a/Zend/zend_execute_API.c
+++ b/Zend/zend_execute_API.c
@@ -266,13 +266,13 @@ void shutdown_executor(void) /* {{{ */
/* All resources and objects are destroyed. */
/* No PHP callback functions may be called after this point. */
+ EG(active) = 0;
+ EG(valid_symbol_table) = 0;
zend_try {
zend_llist_apply(&zend_extensions, (llist_apply_func_t) zend_extension_deactivator);
} zend_end_try();
- EG(valid_symbol_table) = 0;
-
if (fast_shutdown) {
/* Fast Request Shutdown
* =====================
@@ -392,8 +392,6 @@ void shutdown_executor(void) /* {{{ */
zend_cleanup_internal_classes();
zend_shutdown_fpu();
-
- EG(active) = 0;
}
/* }}} */