1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00

Fix bad upmerge from GH-18464 (#18666)

This led to recursion being added to but not removed from internal constants.
This commit is contained in:
DanielEScherzer
2025-05-26 12:40:11 -07:00
committed by GitHub
parent 0a2f367e19
commit de785f9127

View File

@@ -377,7 +377,6 @@ ZEND_API zval *zend_get_class_constant_ex(zend_string *class_name, zend_string *
/* Recursion protection only applied to user constants, GH-18463 */
CONST_PROTECT_RECURSION(c);
}
CONST_PROTECT_RECURSION(c);
zend_deprecated_class_constant(c, constant_name);
if (c->ce->type == ZEND_USER_CLASS) {
CONST_UNPROTECT_RECURSION(c);