Reseet EG(active) a bit early.

This commit is contained in:
Dmitry Stogov 2017-06-23 14:58:19 +03:00
parent 40ed9aaa48
commit 866d3b40e9

View file

@ -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;
}
/* }}} */