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
#2216 probes native compile of lib/Compiler.php as a single unit. Self-host M3 needs the parser/runtime front-door compiled honestly next: lib/Runtime.php wires nikic/php-parser, php-cfg traversers, and new Compiler() — the path every bin/vm.php invocation uses.
Today inventory shows heavy new * warnings in lib/Runtime.php but 0 blockers; emit still uses Zend fallback in M3/M4 smokes.
Goal
First multi-construct M3 batch after unit probe green:
Native AOT emit (or documented partial) for lib/Runtime.php + minimal require_once closure (no full 611 tree)
BOOTSTRAP_RUNTIME_COMPILE_SMOKE=1 script or PHPUnit probe: compiled artifact can parse+compile a trivial <?php echo 1;
Update docs/self-host-target.md M3 row with honest vs Zend emit
Problem
#2216 probes native compile of
lib/Compiler.phpas a single unit. Self-host M3 needs the parser/runtime front-door compiled honestly next:lib/Runtime.phpwiresnikic/php-parser, php-cfg traversers, andnew Compiler()— the path everybin/vm.phpinvocation uses.Today inventory shows heavy
new *warnings inlib/Runtime.phpbut 0 blockers; emit still uses Zend fallback in M3/M4 smokes.Goal
First multi-construct M3 batch after unit probe green:
lib/Runtime.php+ minimalrequire_onceclosure (no full 611 tree)BOOTSTRAP_RUNTIME_COMPILE_SMOKE=1script or PHPUnit probe: compiled artifact can parse+compile a trivial<?php echo 1;docs/self-host-target.mdM3 row with honest vs Zend emitImplementation hints
script/bootstrap-selfhost-runtime-compile-smoke.shbootstrap-selfhost-compile-smoke-probe.shtest/selfhost/ordocs/bootstrap-profile.jsonrequire_onceclosure for Runtimephp script/bootstrap-inventory.phplib/Runtime.phpSuggested order
./phpc doctor --selfhost+ Tooling: bootstrap-inventory-triage.php — top CFG gaps across 611 files #2254 triage onlib/Runtime.phponlyAcceptance criteria
Harness:
./script/docker-exec.sh -- bash -lc 'source script/php-env.sh && BOOTSTRAP_RUNTIME_COMPILE_SMOKE=1 ./script/bootstrap-selfhost-runtime-compile-smoke.sh'Verification (local / Docker only)
No GitHub Actions (#394 ✅). Full gate:
make test-harnessafter probe lands.Dependencies
lib/Compiler.phpunit probe (predecessor)Links
docs/bootstrap-inventory.md·lib/Runtime.php