Skip to content

Commit

Permalink
Fix reference printing in GC tracing
Browse files Browse the repository at this point in the history
  • Loading branch information
nikic committed Aug 14, 2019
1 parent 2f13f65 commit c238b5b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Zend/zend_gc.c
Expand Up @@ -405,7 +405,8 @@ static void gc_trace_ref(zend_refcounted *ref) {
fprintf(stderr, "[%p] rc=%d addr=%d %s %s ",
ref, GC_REFCOUNT(ref), GC_REF_ADDRESS(ref),
gc_color_name(GC_REF_COLOR(ref)),
zend_get_type_by_const(GC_TYPE(ref)));
GC_TYPE(ref) == IS_REFERENCE
? "reference" : zend_get_type_by_const(GC_TYPE(ref)));
}
}
#endif
Expand Down

0 comments on commit c238b5b

Please sign in to comment.