[php-src] PHP-8.4: #if out zend_class_constants_are_updated() in release builds

From: Date: Fri, 25 Sep 2026 13:10:33 +0000
Subject: [php-src] PHP-8.4: #if out zend_class_constants_are_updated() in release builds
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-141552@lists.php.net to get a copy of this message
Author: Ilija Tovilo (iluuu1994) Date: 2026-09-25T15:08:55+02:00 Commit: https://github.com/php/php-src/commit/fa7734f43ff3020c6e21e23a91eb0ab480577b8d Raw diff: https://github.com/php/php-src/commit/fa7734f43ff3020c6e21e23a91eb0ab480577b8d.diff #if out zend_class_constants_are_updated() in release builds This function is only used in debug builds. Changed paths: M Zend/zend_lazy_objects.c Diff: diff --git a/Zend/zend_lazy_objects.c b/Zend/zend_lazy_objects.c index f7ef547bc9cb..eb8b5f300eeb 100644 --- a/Zend/zend_lazy_objects.c +++ b/Zend/zend_lazy_objects.c @@ -179,6 +179,7 @@ bool zend_lazy_object_decr_lazy_props(zend_object *obj) return info->lazy_properties_count == 0; } +#if ZEND_DEBUG /* See zend_update_class_constants(). */ static zend_always_inline bool zend_class_constants_are_updated(const zend_class_entry *ce) { 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 } return false; } +#endif /** * Making objects lazy

« previous php.cvs (#141552) next »