Problem
test/real/ServeTest.php already verifies static style.css from a VM docroot (#150). test/real/ServeAotTest.php only hits the compiled PHP binary (/example.php?name=Dev) and never requests a non-.php asset.
examples/001-SimpleWeb/example.php links <link rel="stylesheet" href="/style.css">. Regressions in bin/serve-aot.php static-file handling would not fail CI.
Goal
Extend ServeAotTest (or sibling test) to:
- Build AOT binary for
examples/001-SimpleWeb/example.php
phpc serve --aot (or bin/serve-aot.php) docroot
GET /style.css → 200, Content-Type: text/css, body contains expected rule
Scope
Acceptance criteria
make docker-build-22
docker run --rm -v "$(pwd):/compiler" -w /compiler php-compiler:22.04-dev \
./script/ci-local.sh --filter ServeAotTest
passes with serve tests enabled (no PHP_COMPILER_SKIP_SERVE_TESTS).
Dependencies
Related
Problem
test/real/ServeTest.phpalready verifies staticstyle.cssfrom a VM docroot (#150).test/real/ServeAotTest.phponly hits the compiled PHP binary (/example.php?name=Dev) and never requests a non-.phpasset.examples/001-SimpleWeb/example.phplinks<link rel="stylesheet" href="/style.css">. Regressions inbin/serve-aot.phpstatic-file handling would not fail CI.Goal
Extend
ServeAotTest(or sibling test) to:examples/001-SimpleWeb/example.phpphpc serve --aot(orbin/serve-aot.php) docrootGET /style.css→200,Content-Type: text/css, body contains expected ruleScope
ServeAotTestexamples/001-SimpleWeb/style.css@group llvm+@group serveAcceptance criteria
make docker-build-22 docker run --rm -v "$(pwd):/compiler" -w /compiler php-compiler:22.04-dev \ ./script/ci-local.sh --filter ServeAotTestpasses with serve tests enabled (no
PHP_COMPILER_SKIP_SERVE_TESTS).Dependencies
phpc serve --aotRelated