Skip to content

Close #10030: match enum-case subject vs scalar arm parity (already fixed) - #10139

Merged
PurHur merged 1 commit into
masterfrom
agent/issue-10030-match-enum-close
Jun 19, 2026
Merged

PurHur merged 1 commit into
masterfrom
agent/issue-10030-match-enum-close

Conversation

@PurHur

@PurHur PurHur commented Jun 19, 2026

Copy link
Copy Markdown
Owner

Summary

Verification

./script/docker-exec.sh -- bash -lc 'source script/php-env.sh
php bin/vm.php test/repro-maintainer/match_enum_subject_scalar_arm.php
# case_hit

php bin/vm.php test/compliance/cases/language/match_enum_subject_scalar_arm.phpt
# case_hit

vendor/bin/phpunit test/compliance/MatchVMTest.php --filter match_enum_subject_scalar_arm
# OK (1 test, 1 assertion)
'
Probe Zend PHP 8.2 VM
match (F::X) { 1 => ..., F::X => ... } case_hit case_hit

php-src reference

  • Zend/zend_execute.c — ZEND_MATCH arm comparison preserves enum identity

Closes #10030

Made with Cursor

Regression was already fixed on master (re-#10007); add issue refs to
compliance PHPTs and maintainer repro for traceability.

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.

Regression: match() enum-case subject matches scalar backing arms — re-#10007 (Zend/zend_execute.c)

1 participant