com php-src: Fix reference printing in GC tracing: Zend/zend_ gc.c
| From: | Nikita Popov | Date: | Wed, 14 Aug 2019 15:51:41 +0000 |
| Subject: | com php-src: Fix reference printing in GC tracing: Zend/zend_ gc.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-107925@lists.php.net to get a copy of this message | ||
Commit: c238b5bbefd9d3c012c587fc6e9fd8ce98546261
Author: Nikita Popov <nikita.ppv@gmail.com> Wed, 14 Aug 2019 16:58:54 +0200
Parents: 2f13f65706c6a3b2a71af2563cd10707f14892fa
Branches: PHP-7.4 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=c238b5bbefd9d3c012c587fc6e9fd8ce98546261
Log:
Fix reference printing in GC tracing
Changed paths:
M Zend/zend_gc.c
Diff:
diff --git a/Zend/zend_gc.c b/Zend/zend_gc.c
index 12922a2..60e128e 100644
--- a/Zend/zend_gc.c
+++ b/Zend/zend_gc.c
@@ -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