Skip to content

Commit fa7734f

Browse files
committed
#if out zend_class_constants_are_updated() in release builds
This function is only used in debug builds.
1 parent 4b34a3b commit fa7734f

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎Zend/zend_lazy_objects.c‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,7 @@ bool zend_lazy_object_decr_lazy_props(zend_object *obj)
179179
return info->lazy_properties_count == 0;
180180
}
181181

182+
#if ZEND_DEBUG
182183
/* See zend_update_class_constants(). */
183184
static zend_always_inline bool zend_class_constants_are_updated(const zend_class_entry *ce) {
184185
if (ce->ce_flags & ZEND_ACC_CONSTANTS_UPDATED) {
@@ -190,6 +191,7 @@ static zend_always_inline bool zend_class_constants_are_updated(const zend_class
190191
}
191192
return false;
192193
}
194+
#endif
193195

194196
/**
195197
* Making objects lazy

0 commit comments

Comments
 (0)