From 06738fc051a5f1c5eaee6b6de3e6fa3474480dba Mon Sep 17 00:00:00 2001 From: Niels Dossche <7771979+nielsdos@users.noreply.github.com> Date: Sun, 18 May 2025 15:01:24 +0200 Subject: [PATCH] Remove ZEND_ACC_USE_GUARDS from hooks (#18587) This is no longer necessary since the hooks amendments removed guards for recursion. --- Zend/zend_inheritance.c | 1 - 1 file changed, 1 deletion(-) diff --git a/Zend/zend_inheritance.c b/Zend/zend_inheritance.c index e718eb5684e..3c638f288a8 100644 --- a/Zend/zend_inheritance.c +++ b/Zend/zend_inheritance.c @@ -2983,7 +2983,6 @@ static void zend_do_traits_property_binding(zend_class_entry *ce, zend_class_ent hooks[j] = new_fn; } } - ce->ce_flags |= ZEND_ACC_USE_GUARDS; } } ZEND_HASH_FOREACH_END(); }