Language: Zend fatal for anonymous class in attribute ctor (#27709) - #27710
Merged
Conversation
Match php-src const-expr rejection (Cannot use anonymous class in constant expression) instead of the Dynamic class name parseAndCompile string. Co-authored-by: Cursor <cursoragent@cursor.com>
This was referenced Aug 5, 2026
Release scoping: compliance debt is concentrated, not diffuse — intl 89% and gmp 100% failing
#24697
Open
PurHur
added a commit
that referenced
this pull request
Aug 5, 2026
…27714) (#27729) north-star5-verify-fast step 4f-m failed: lowering_source_fingerprint lagged live sources after lowering commits past #27701. Zend-rebuild the committed argv driver with verified-fresh provenance (no restamp). Co-authored-by: PurHur <PurHur@users.noreply.github.com> Co-authored-by: Cursor <cursoragent@cursor.com>
PurHur
added a commit
that referenced
this pull request
Aug 5, 2026
north-star5-verify-fast step 4f-m failed: lowering_source_fingerprint lagged live sources after anonymous-class-in-attribute-ctor fatal. Zend-rebuild the committed argv driver with verified-fresh provenance (no restamp); inventory doc picks up AttributeConstantEvaluator warning. Co-authored-by: Cursor <cursoragent@cursor.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Cannot use anonymous class in constant expression(CompileFatal / Fatal error line) whennew class {}appears in an attribute constructor argument, instead ofDynamic class name in attribute constructor new expression is not supported.new ClassNamein the same position is unchanged.Zend/zend_compile.cconst-expr /ZEND_ACC_ANON_CLASS; PHP path:lib/Compiler/AttributeConstantEvaluator.php(reusesFunctionStaticAnonymousClassCompileCheck::MESSAGE).Closes #27709
Test plan
AttributeConstructorNewTest(4 tests)Verification
Pre-claim gates: inventory OK 7009/7009;
bootstrap-selfhost-linkOK (gen-0 sidecar fallback).release-readinessnorth-star5-fastfail is pre-existing gen-0 manifest/driver mismatch (#8713), not touched by this PR.Made with Cursor