[php-src] master: Remove ZEND_ACC_USE_GUARDS from hooks (#18587)
Author: Niels Dossche (nielsdos)
Committer: GitHub (web-flow)
Pusher: nielsdos
Date: 2025-05-18T15:01:24+02:00
Commit: https://github.com/php/php-src/commit/06738fc051a5f1c5eaee6b6de3e6fa3474480dba
Raw diff: https://github.com/php/php-src/commit/06738fc051a5f1c5eaee6b6de3e6fa3474480dba.diff
Remove ZEND_ACC_USE_GUARDS from hooks (#18587)
This is no longer necessary since the hooks amendments removed guards
for recursion.
Changed paths:
M Zend/zend_inheritance.c
Diff:
diff --git a/Zend/zend_inheritance.c b/Zend/zend_inheritance.c
index e718eb5684e6..3c638f288a80 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();
}
Thread (1 message)
- Niels Dossche via GitHub