Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions frankenphp.c
Original file line number Diff line number Diff line change
Expand Up @@ -501,6 +501,11 @@ static zend_module_entry frankenphp_module = {
STANDARD_MODULE_PROPERTIES};

static void frankenphp_request_shutdown() {
if (is_worker_thread) {
/* ensure $_ENV is not in an invalid state before shutdown */
zval_ptr_dtor_nogc(&PG(http_globals)[TRACK_VARS_ENV]);
array_init(&PG(http_globals)[TRACK_VARS_ENV]);
}
php_request_shutdown((void *)0);
frankenphp_free_request_context();
}
Expand Down
Loading