php-src/Zend/tests/constants
DanielEScherzer cd751f98cb
Reapply GH-17712 with a fix for internal class constants (#18464)
Add recursion protection when emitting deprecation warnings for class
constants, since the deprecation message can come from an attribute that is
using the same constant for the message, or otherwise result in recursion.

But, internal constants are persisted, and thus cannot have recursion
protection. Otherwise, if a user error handler triggers bailout before the
recursion flag is removed then a subsequent request (e.g. with `--repeat 2`)
would start with that flag already applied. Internal constants can presumably
be trusted not to use deprecation messages that come from recursive attributes.

Fixes GH-18463
Fixes GH-17711
2025-05-25 16:43:36 -07:00
..
final_constants Improve error message class type 2022-03-20 20:54:36 +01:00
fixtures
dir-constant-eval.phpt
dir-constant-includes.phpt
dir-constant-nested_includes.phpt
dir-constant-normal.phpt
gh18463-class-constant.phpt Reapply GH-17712 with a fix for internal class constants (#18464) 2025-05-25 16:43:36 -07:00