summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Zend/zend_gc.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Zend/zend_gc.h b/Zend/zend_gc.h
index 4baca8fe33..d7b4e1a533 100644
--- a/Zend/zend_gc.h
+++ b/Zend/zend_gc.h
@@ -71,7 +71,7 @@ END_EXTERN_C()
static zend_always_inline void gc_check_possible_root(zend_refcounted *ref)
{
- if (GC_TYPE_INFO(ref) == IS_REFERENCE) {
+ if (EXPECTED(GC_TYPE_INFO(ref) == IS_REFERENCE)) {
zval *zv = &((zend_reference*)ref)->val;
if (!Z_COLLECTABLE_P(zv)) {