Skip to content

Commit c238b5b

Browse files
committed
Fix reference printing in GC tracing
1 parent 2f13f65 commit c238b5b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Zend/zend_gc.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,8 @@ static void gc_trace_ref(zend_refcounted *ref) {
405405
fprintf(stderr, "[%p] rc=%d addr=%d %s %s ",
406406
ref, GC_REFCOUNT(ref), GC_REF_ADDRESS(ref),
407407
gc_color_name(GC_REF_COLOR(ref)),
408-
zend_get_type_by_const(GC_TYPE(ref)));
408+
GC_TYPE(ref) == IS_REFERENCE
409+
? "reference" : zend_get_type_by_const(GC_TYPE(ref)));
409410
}
410411
}
411412
#endif

0 commit comments

Comments
 (0)