We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9cca128 commit 432824eCopy full SHA for 432824e
frankenphp.c
@@ -501,6 +501,11 @@ static zend_module_entry frankenphp_module = {
501
STANDARD_MODULE_PROPERTIES};
502
503
static void frankenphp_request_shutdown() {
504
+ if (is_worker_thread) {
505
+ /* ensure $_ENV is not in an invalid state before shutdown */
506
+ zval_ptr_dtor_nogc(&PG(http_globals)[TRACK_VARS_ENV]);
507
+ array_init(&PG(http_globals)[TRACK_VARS_ENV]);
508
+ }
509
php_request_shutdown((void *)0);
510
frankenphp_free_request_context();
511
}
0 commit comments