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
#50 tracks bin/cgi.php (CGI/1.1 stdin/env driver). There is no PHPUnit harness proving a compiled or VM script produces correct Status: + headers + body when invoked like nginx would (env vars only, no TCP).
Without a test, CGI regressions slip past ci-fast.sh until manual nginx setup.
Goal
test/real/CgiDriverTest.php (or PHPT under test/real/cases/):
Problem
#50 tracks
bin/cgi.php(CGI/1.1 stdin/env driver). There is no PHPUnit harness proving a compiled or VM script produces correctStatus:+ headers + body when invoked like nginx would (env vars only, no TCP).Without a test, CGI regressions slip past
ci-fast.shuntil manual nginx setup.Goal
test/real/CgiDriverTest.php(or PHPT undertest/real/cases/):bin/cgi.php, runexamples/001-SimpleWeb/example.phpwith:REQUEST_METHOD=GET,QUERY_STRING=name=CgiTest,SCRIPT_NAME=/example.phpStatus: 200,Content-Type: text/html, andCgiTestin bodySkip when
PHP_COMPILER_SKIP_SERVE_TESTS=1(same as ServeTest).Implementation hints
proc_openonphp bin/cgi.php <path>with env array — no loopback001-SimpleWeb; avoid MiniWebApp until #568docs/deploy-web-aot.mdstub (#635)Acceptance criteria
Blocked until #50 — use
markTestSkipped('bin/cgi.php not shipped (#50)')until then.Docker:
docker run --rm -v "$(pwd):/compiler" -w /compiler php-compiler:22.04-dev \ ./script/ci-fast.sh --filter CgiDriverTestDependencies
Links
lib/Web/DevServer.phpenv keys to mirror