Skip to content

Commit fe55f8c

Browse files
committed
* fix GC end var warning
1 parent 48aa885 commit fe55f8c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Zend/zend_gc.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2265,8 +2265,6 @@ ZEND_API int zend_gc_collect_cycles(void)
22652265
stack.next = NULL;
22662266
#endif
22672267

2268-
end = 0;
2269-
22702268
if (GC_G(gc_active)) {
22712269
GC_G(collector_time) += zend_hrtime() - GC_COLLECT_START_TIME;
22722270
GC_COLLECT_FINISH_0;
@@ -2347,6 +2345,7 @@ ZEND_API int zend_gc_collect_cycles(void)
23472345
if (EXPECTED(!EG(active_fiber))) {
23482346
#ifdef PHP_ASYNC_API
23492347
continue_calling_destructors:
2348+
end = GC_G(first_unused);
23502349
if (UNEXPECTED(FAILURE == gc_call_destructors(GC_G(dtor_idx), GC_G(first_unused), NULL))) {
23512350
//
23522351
// gc_call_destructors returns FAILURE when a destructor interrupts execution,

0 commit comments

Comments
 (0)