Repository navigation
Language: JIT/AOT new $class variable classname (#27156) - #27177
Merged
Merged
Conversation
Enable runtime classname resolution for non-literal `new` in EMBED and AOT, dispatch __construct by class_id, and stop `$class`/get_class from suppressing the MCJIT embed bootstrap (false `\bclass\b` match). Co-authored-by: Cursor <cursoragent@cursor.com>
4 tasks
5 tasks
PurHur
added a commit
that referenced
this pull request
Aug 3, 2026
Master raced Language JIT new \$class during the prior refresh; honest argv rebuild stamps fingerprint 77156ada… (verified-fresh). Functional smoke OK. Co-authored-by: Cursor <cursoragent@cursor.com>
4 of 5 tasks
PurHur
added a commit
that referenced
this pull request
Aug 3, 2026
Master raced Language JIT new \$class during the prior refresh; honest argv rebuild stamps fingerprint 77156ada… (verified-fresh). Functional smoke OK. Co-authored-by: Cursor <cursoragent@cursor.com>
PurHur
added a commit
that referenced
this pull request
Aug 3, 2026
#27177 added lib/JIT/Call/NoOpConstruct.php to inventory without spine require_once; north-star5-verify-fast step 2 failed coverage. Add to spine and sync footnotes (6858/6860). Sidecar blob refresh left for follow-up — fast path does not relink. Co-authored-by: Cursor <cursoragent@cursor.com>
PurHur
added a commit
that referenced
this pull request
Aug 3, 2026
PurHur
added a commit
that referenced
this pull request
Aug 3, 2026
#27177 added NoOpConstruct to inventory without spine require_once; coverage and inventory doc drift blocked north-star5-verify-fast. spine-sync --no-link covers the unit (6858/6860) and regenerates footnotes; sidecar blob refresh deferred (BOOTSTRAP_ALLOW_STALE_SIDECAR / make bootstrap-gen0-refresh-sidecar). Co-authored-by: Cursor <cursoragent@cursor.com>
PurHur
added a commit
that referenced
this pull request
Aug 3, 2026
#27178) * Trust: refresh gen-0 argv fingerprint after #27170 preg_replace (Pillar 1) (#27174) north-star5-verify-fast failed on lowering_source_fingerprint mismatch after #27168 (1 lowering commit: #27170). Honest argv rebuild stamps fingerprint 2db0a475… (verified-fresh); functional smoke OK on build/ and committed path. Co-authored-by: Cursor <cursoragent@cursor.com> * Trust: re-stamp gen-0 argv fingerprint after #27177 new \$class (#27174) Master raced Language JIT new \$class during the prior refresh; honest argv rebuild stamps fingerprint 77156ada… (verified-fresh). Functional smoke OK. Co-authored-by: Cursor <cursoragent@cursor.com> * Trust: spine-cover NoOpConstruct from #27177 (#27174) #27177 added lib/JIT/Call/NoOpConstruct.php to inventory without spine require_once; north-star5-verify-fast step 2 failed coverage. Add to spine and sync footnotes (6858/6860). Sidecar blob refresh left for follow-up — fast path does not relink. Co-authored-by: Cursor <cursoragent@cursor.com> * Trust: re-stamp gen-0 argv fingerprint after #27179 inet AOT (#27174) Master raced inet_pton/ntop NestedJIT during the prior refresh; honest argv rebuild stamps fingerprint 7cd43894… (verified-fresh). Functional smoke OK. Co-authored-by: Cursor <cursoragent@cursor.com> * Revert "Trust: spine-cover NoOpConstruct from #27177 (#27174)" This reverts commit f6692c1. * Trust: refresh InetJitHelper helper-runtime prelink (#27174) #27179 left ext_standard_InetJitHelper_php stale in the committed tier, blocking release-readiness helper-runtime-prelink. Republish fingerprint- matched unit (359 fresh, 0 stale). Co-authored-by: Cursor <cursoragent@cursor.com> * Trust: spine-cover NoOpConstruct + inventory regen (#27174) #27177 added NoOpConstruct to inventory without spine require_once; coverage and inventory doc drift blocked north-star5-verify-fast. spine-sync --no-link covers the unit (6858/6860) and regenerates footnotes; sidecar blob refresh deferred (BOOTSTRAP_ALLOW_STALE_SIDECAR / make bootstrap-gen0-refresh-sidecar). Co-authored-by: Cursor <cursoragent@cursor.com> --------- 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 3, 2026
Enable runtime classname resolution for non-literal `new` in EMBED and AOT, dispatch __construct by class_id, and stop `$class`/get_class from suppressing the MCJIT embed bootstrap (false `\bclass\b` match). 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 3, 2026
#27178) * Trust: refresh gen-0 argv fingerprint after #27170 preg_replace (Pillar 1) (#27174) north-star5-verify-fast failed on lowering_source_fingerprint mismatch after #27168 (1 lowering commit: #27170). Honest argv rebuild stamps fingerprint 2db0a475… (verified-fresh); functional smoke OK on build/ and committed path. Co-authored-by: Cursor <cursoragent@cursor.com> * Trust: re-stamp gen-0 argv fingerprint after #27177 new \$class (#27174) Master raced Language JIT new \$class during the prior refresh; honest argv rebuild stamps fingerprint 77156ada… (verified-fresh). Functional smoke OK. Co-authored-by: Cursor <cursoragent@cursor.com> * Trust: spine-cover NoOpConstruct from #27177 (#27174) #27177 added lib/JIT/Call/NoOpConstruct.php to inventory without spine require_once; north-star5-verify-fast step 2 failed coverage. Add to spine and sync footnotes (6858/6860). Sidecar blob refresh left for follow-up — fast path does not relink. Co-authored-by: Cursor <cursoragent@cursor.com> * Trust: re-stamp gen-0 argv fingerprint after #27179 inet AOT (#27174) Master raced inet_pton/ntop NestedJIT during the prior refresh; honest argv rebuild stamps fingerprint 7cd43894… (verified-fresh). Functional smoke OK. Co-authored-by: Cursor <cursoragent@cursor.com> * Revert "Trust: spine-cover NoOpConstruct from #27177 (#27174)" This reverts commit f6692c1. * Trust: refresh InetJitHelper helper-runtime prelink (#27174) #27179 left ext_standard_InetJitHelper_php stale in the committed tier, blocking release-readiness helper-runtime-prelink. Republish fingerprint- matched unit (359 fresh, 0 stale). Co-authored-by: Cursor <cursoragent@cursor.com> * Trust: spine-cover NoOpConstruct + inventory regen (#27174) #27177 added NoOpConstruct to inventory without spine require_once; coverage and inventory doc drift blocked north-star5-verify-fast. spine-sync --no-link covers the unit (6858/6860) and regenerates footnotes; sidecar blob refresh deferred (BOOTSTRAP_ALLOW_STALE_SIDECAR / make bootstrap-gen0-refresh-sidecar). Co-authored-by: Cursor <cursoragent@cursor.com> --------- Co-authored-by: PurHur <PurHur@users.noreply.github.com> 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
new $classin EMBED JIT and AOT (LateStaticBindingHelper+allocateForRuntimeClassId), with__constructdispatch viaRuntimeIndirectInstanceMethodCall/NoOpConstruct.$class/get_classfalsely suppressing MCJIT embed bootstrap (JitMcjitEmbeddeclaration-shaped regex).InstantiableClassJitGuardnull jit, stdout globals,JitIsResourcestubs).Closes #27156
php-src reference
Zend/zend_compile.c—zend_compile_new/ZEND_FETCH_CLASSZend/zend_execute.c—ZEND_NEWTest plan
stdClass/Exception:boom:vendor/bin/phpunit --filter testInjectsBootstrapWhenOnlyClassVariableOrGetClass test/unit/JitMcjitEmbedTest.phpErroron Zend/VMNot covered
north-star5-verify-faststill red on master for gen-0 fingerprint (Trust: refresh gen-0 argv fingerprint after #27160/#27161 (Pillar 1) #27162)Made with Cursor