Skip to content

Close #6590: enum type constant compliance coverage - #6599

Merged
PurHur merged 1 commit into
masterfrom
agent/issue-6590-enum-type-constants
Jun 6, 2026
Merged

PurHur merged 1 commit into
masterfrom
agent/issue-6590-enum-type-constants

Conversation

@PurHur

@PurHur PurHur commented Jun 6, 2026

Copy link
Copy Markdown
Owner

Summary

Verification

Issue repro (VM):

./script/docker-exec.sh -- bash -lc 'source script/php-env.sh && php bin/vm.php test/repro/maintainer_enum_type_constant.php'
x
x
defined

Issue repro (JIT):

./script/docker-exec.sh -- bash -lc 'source script/php-env.sh && php bin/jit.php test/repro/maintainer_enum_type_constant.php'
x
x
defined

Compliance filter from issue acceptance criteria:

./script/docker-exec.sh -- bash -lc 'source script/php-env.sh && vendor/bin/phpunit --filter enum_type_constant'
OK (2 tests, 2 assertions)

Note: AOT compile for backed enums still segfaults (pre-existing; enum_backed.phpt also fails with exit 139). Out of scope for this language parity ticket — tracked separately.

php-src reference

  • Zend/zend_enum.c — enum constant table
  • Zend/zend_compile.c — zend_compile_enum constant registration

Made with Cursor

Enum user const on backed enums already resolves via #6407; wire the
issue repro, maintainer script, and enum_type_constant.phpt guard.

Co-authored-by: Cursor <cursoragent@cursor.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Language: enum type constants — public const on enum declaration missing (PHP 8.3)

1 participant