Problem
Native user-class AOT link for phpc build --project closed in #568 ✅, but script/examples-aot-smoke.sh still always skips 003 with a stderr stub pointing at #568:
smoke_003_miniwebapp() {
echo "examples-aot-smoke: 003-MiniWebApp: skip (AOT link blocked #568; see #485)" >&2
return 0
}
Operators cannot validate MiniWebApp AOT execute in the same shell gate used for 000–004 without editing the script.
Goal
Uncomment / implement the 003 block so make examples-aot-smoke (and EXAMPLES_AOT_SMOKE_ONLY=003) builds the project binary and asserts route output under CGI env (PATH_INFO=/home, REQUEST_METHOD=GET).
Scope
Implementation hints
| Piece |
File |
Notes |
| Smoke |
script/examples-aot-smoke.sh |
Block ~L122–144 commented template exists |
| Env |
run_binary helper |
Set PATH_INFO, SCRIPT_NAME, DOCUMENT_ROOT like #491 |
| Probe |
script/miniwebapp-gates.sh stage 4c |
Should flip mark to ✅ when this lands |
| PHPUnit |
#454 test003MiniWebAppEventuallyRuns |
Land step 2 before or with this issue |
Acceptance criteria
make docker-build-22
docker run --rm -v "$(pwd):/compiler" -w /compiler php-compiler:22.04-dev \
EXAMPLES_AOT_SMOKE_ONLY=003 ./script/examples-aot-smoke.sh
# exit 0, stderr contains: examples-aot-smoke: 003-MiniWebApp: ok
Dependencies
Verification
Local/Docker only — not GitHub Actions.
Links
Problem
Native user-class AOT link for
phpc build --projectclosed in #568 ✅, butscript/examples-aot-smoke.shstill always skips 003 with a stderr stub pointing at #568:Operators cannot validate MiniWebApp AOT execute in the same shell gate used for 000–004 without editing the script.
Goal
Uncomment / implement the 003 block so
make examples-aot-smoke(andEXAMPLES_AOT_SMOKE_ONLY=003) builds the project binary and asserts route output under CGI env (PATH_INFO=/home,REQUEST_METHOD=GET).Scope
phpc build --project→./.phpc/bin/appexecuteMiniWebAppor home route HTML substring (match Testing: MiniWebApp AOT binary CLI execute smoke (tracked in #747, blocked #764) #485 / Docs: Add 003-MiniWebApp row to examples benchmark table when VM green #491)test/unit/ExamplesAotSmokeScriptTest.php— no longer assert stderr contains#568skip textexamples/README.mdbenchmark row via Testing: Regenerate examples benchmark AOT row for 003 after #568 #716 when greenImplementation hints
script/examples-aot-smoke.shrun_binaryhelperPATH_INFO,SCRIPT_NAME,DOCUMENT_ROOTlike #491script/miniwebapp-gates.shstage 4cmarkto ✅ when this landstest003MiniWebAppEventuallyRunsAcceptance criteria
Dependencies
Verification
Local/Docker only — not GitHub Actions.
Links
make examples-aot-smokeumbrella