We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5ab7c4a commit 7ca8dccCopy full SHA for 7ca8dcc
frankenphp.c
@@ -442,13 +442,8 @@ PHP_FUNCTION(frankenphp_handle_request) {
442
ctx->has_active_request = false;
443
go_frankenphp_finish_worker_request(thread_index);
444
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();
+ zend_hash_graceful_reverse_destroy(&EG(regular_list));
+ zend_init_rsrc_list();
452
453
RETURN_TRUE;
454
}
0 commit comments