Problem
make examples-web-smoke exercises VM phpc serve + curl for 001, 002, 004 (and 003 when enabled). There is no one Make target for contributors to run AOT build + CLI execute across shipped examples after LLVM install — they must remember per-example phpc build commands from examples/README.md.
ExamplesCompileTest covers lint/build in full CI (#203 ✅) but not a fast, copy-paste smoke script for pre-PR checks.
Goal
make examples-aot-smoke # skips gracefully when LLVM missing
Runs for each of 000-HelloWorld, 001-SimpleWeb, 002-StaticWeb, 004-ApiJson:
phpc build to temp output under .phpc/smoke/
- Execute with runtime CGI env where needed (001
QUERY_STRING=name=Smoke)
- Assert stdout substring (no HTTP)
003-MiniWebApp remains skipped until #568 / #485 (document in script stderr).
Scope
Acceptance criteria
make docker-build-22
docker run --rm -v "$(pwd):/compiler" -w /compiler php-compiler:22.04-dev make examples-aot-smoke
All non-skipped examples print expected markers; exit 0.
Dependencies
Verification
Local/Docker only — not GitHub Actions.
Links
Problem
make examples-web-smokeexercises VMphpc serve+ curl for 001, 002, 004 (and 003 when enabled). There is no one Make target for contributors to run AOT build + CLI execute across shipped examples after LLVM install — they must remember per-examplephpc buildcommands fromexamples/README.md.ExamplesCompileTestcovers lint/build in full CI (#203 ✅) but not a fast, copy-paste smoke script for pre-PR checks.Goal
make examples-aot-smoke # skips gracefully when LLVM missingRuns for each of
000-HelloWorld,001-SimpleWeb,002-StaticWeb,004-ApiJson:phpc buildto temp output under.phpc/smoke/QUERY_STRING=name=Smoke)003-MiniWebApp remains skipped until #568 / #485 (document in script stderr).
Scope
script/examples-aot-smoke.sh+MakefiletargetPHP_COMPILER_LLVM_PATH/.llvm/probe (exit 0 with skip message if missing)ci-local.shllvmaot-linkphase behind envEXAMPLES_AOT_SMOKE_GATE=1(default off — full suite already has ExamplesCompileTest)examples/README.mdCI sectionAcceptance criteria
make docker-build-22 docker run --rm -v "$(pwd):/compiler" -w /compiler php-compiler:22.04-dev make examples-aot-smokeAll non-skipped examples print expected markers; exit 0.
Dependencies
Verification
Local/Docker only — not GitHub Actions.
Links
examples/README.md,test/unit/ExamplesCompileTest.php