You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Stdlib: ReflectionClassConstant::getModifiers() and IS_* constants missing (ext/reflection/php_reflection.c) #17360
ReflectionClassConstant exposes isPublic()/isProtected()/isPrivate() but not getModifiers() or the IS_PUBLIC/IS_PROTECTED/IS_PRIVATE/IS_FINAL class constants. Code introspecting modifier bitmasks fails.
Repro
Zend 8.1+
VM (2026-07-08)
ReflectionClassConstant::IS_PUBLIC
256 (typed int on 8.4)
undefined constant
(new ReflectionClassConstant(...))->getModifiers()
Activity
PurHur commentedon Jul 8, 2026
claim: PHP Compiler STD Lib Advanced — batch (issues #17359 #17360 #17361)
Stdlib: ReflectionClassConstant hasType/getModifiers/isEnumCase batch (…
PurHur commentedon Jul 8, 2026
Merged in PR #17363.
Verification (Docker,
PHP_COMPILER_PROFILE=8.4):php bin/vm.php test/repro/maintainer_gap_reflection_class_constant_has_type.php→ typed/untypedphp bin/vm.php test/repro/maintainer_gap_reflection_class_constant_modifiers.php→ IS_* 1/2/4/32, getModifiers 1/2/4/33php bin/vm.php test/repro/maintainer_gap_reflection_class_constant_is_enum_case.php→ enum/scalarreflection_class_constant_has_type.phpt,reflection_class_constant_modifiers.phpt,reflection_class_constant_is_enum_case_typed_const.phpt./script/ci-fast.shgreen.