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
Direct compile of a child that overrides a final method correctly fatals. The same declaration via eval() succeeds under the VM and prints ok. Zend fatals for both paths (Cannot override final method A::f()).
bootstrap-inventory --check: red (file-list/construct-flag drift vs committed doc; known master skew — not regenerating unless this fix touches vm.php path)
Will run issue repro + targeted guard after fix; release-readiness if needed for merge.
Activity
PurHur commentedon Jul 29, 2026
claim: worker-lane-C — starting this run
Trust snapshot (pre-triage):
Language: eval() cannot override final methods (#24884) (#24900)
PurHur commentedon Jul 29, 2026
Merged via #24900
Verification
php bin/vm.phpissue repro:PHP Fatal error: Cannot override final method A::f()exit 255 (try/catch does not catch — Zend parity)FinalMethodOverrideCheckphpunit --filter 'final_method_eval_override_fatal|FinalMethodOverrideCheckTest'→ OK (7 tests)