Skip to content

Commit 7ca8dcc

Browse files
committed
try the obvious
1 parent 5ab7c4a commit 7ca8dcc

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

frankenphp.c

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -442,13 +442,8 @@ PHP_FUNCTION(frankenphp_handle_request) {
442442
ctx->has_active_request = false;
443443
go_frankenphp_finish_worker_request(thread_index);
444444

445-
// remove any elements that have 1 gc reference (it only exists in the resource list)
446-
zval *val;
447-
ZEND_HASH_FOREACH_VAL(&EG(regular_list), val) {
448-
if (GC_REFCOUNT(Z_RES_P(val)) == 1) {
449-
zend_hash_packed_del_val(&EG(regular_list), val);
450-
}
451-
} ZEND_HASH_FOREACH_END();
445+
zend_hash_graceful_reverse_destroy(&EG(regular_list));
446+
zend_init_rsrc_list();
452447

453448
RETURN_TRUE;
454449
}

0 commit comments

Comments
 (0)