We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 48aa885 commit fe55f8cCopy full SHA for fe55f8c
Zend/zend_gc.c
@@ -2265,8 +2265,6 @@ ZEND_API int zend_gc_collect_cycles(void)
2265
stack.next = NULL;
2266
#endif
2267
2268
- end = 0;
2269
-
2270
if (GC_G(gc_active)) {
2271
GC_G(collector_time) += zend_hrtime() - GC_COLLECT_START_TIME;
2272
GC_COLLECT_FINISH_0;
@@ -2347,6 +2345,7 @@ ZEND_API int zend_gc_collect_cycles(void)
2347
2345
if (EXPECTED(!EG(active_fiber))) {
2348
2346
#ifdef PHP_ASYNC_API
2349
continue_calling_destructors:
+ end = GC_G(first_unused);
2350
if (UNEXPECTED(FAILURE == gc_call_destructors(GC_G(dtor_idx), GC_G(first_unused), NULL))) {
2351
//
2352
// gc_call_destructors returns FAILURE when a destructor interrupts execution,
0 commit comments