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
{{ message }}
Repository navigation
Self-host M3: PHPTypes native unit probe (lib/PHPTypes subset) #2430
M3 unit probes cover Compiler (#2216), JIT (#2332), VM (#2354), and CFG parse (#2409) — but not the PHPTypes surface used on every compile path (\PHPTypes\Type, union/intersection constants, JIT external class seeds).
When native emit fails inside type coercion or Type:: constants, triage dumps into generic #2301 / #2323 buckets instead of a reproducible micro-probe.
Goal
test/selfhost/types_unit_probe/main.php — smallest require_once chain into vendor/ircmaxell/php-types / patched PHPTypes used by lib/Compiler.php
script/bootstrap-selfhost-types-unit-probe.sh — native AOT link + run; stdout contains types_unit_probe bundle OK
make bootstrap-selfhost-types-unit-probe + docs/bootstrap-selfhost.md M3 probes table row
Problem
M3 unit probes cover Compiler (#2216), JIT (#2332), VM (#2354), and CFG parse (#2409) — but not the PHPTypes surface used on every compile path (
\PHPTypes\Type, union/intersection constants, JIT external class seeds).When native emit fails inside type coercion or
Type::constants, triage dumps into generic #2301 / #2323 buckets instead of a reproducible micro-probe.Goal
test/selfhost/types_unit_probe/main.php— smallestrequire_oncechain intovendor/ircmaxell/php-types/ patched PHPTypes used bylib/Compiler.phpscript/bootstrap-selfhost-types-unit-probe.sh— native AOT link + run; stdout containstypes_unit_probe bundle OKmake bootstrap-selfhost-types-unit-probe+docs/bootstrap-selfhost.mdM3 probes table rownorth-star3-verifystep (after Testing: north-star3-verify — add parser unit probe step after #2409 #2418), default-on flipImplementation hints
test/selfhost/types_unit_probe/Type::TYPE_*constants + one union/intersection parse pathcompiler_minimalpatternpatches/php-types-*.patchscript/apply-patches.shvendor/at cold boot long-termVerification (local / Docker only)
make bootstrap-selfhost-types-unit-probe ./script/docker-exec.sh -- bash -lc 'source script/php-env.sh && make bootstrap-selfhost-types-unit-probe'No GitHub Actions.
Acceptance criteria
php-compiler:22.04-devwhen LLVM 9 presentDependencies
Links