Skip to content

Web: bin/cgi.php VM CGI/1.1 driver (#50, #656)#662

Merged
PurHur merged 1 commit into
masterfrom
issue-50-cgi-driver
May 22, 2026
Merged

Web: bin/cgi.php VM CGI/1.1 driver (#50, #656)#662
PurHur merged 1 commit into
masterfrom
issue-50-cgi-driver

Conversation

@PurHur
Copy link
Copy Markdown
Owner

@PurHur PurHur commented May 22, 2026

Summary

  • Add bin/cgi.php and lib/Web/CgiDriver.php so nginx/apache can run VM scripts via CGI env + stdin (no TCP dev server).
  • Read CONTENT_LENGTH bytes from stdin into REQUEST_BODY, run the script, emit Status: + headers + body from ResponseContext.
  • Add test/real/CgiDriverTest.php (@group cgi) smoke for examples/001-SimpleWeb GET/POST via proc_open.
  • Regenerate docs/bootstrap-inventory.md and docs/bootstrap-profile.json so ci-fast.sh --check passes on the harness.

Closes #50 (VM phase). Closes #656.

Test plan

  • ./script/docker-ci-local.sh fast --filter CgiDriverTest
  • ./script/docker-ci-local.sh full LLVM gate (optional follow-up)

Made with Cursor

Ship CgiDriver for env + stdin body ingestion, Status-line response
formatting, and CgiDriverTest smoke against 001-SimpleWeb. Regenerate
bootstrap inventory docs so ci-fast --check passes on the harness.

Co-authored-by: Cursor <cursoragent@cursor.com>
@PurHur PurHur merged commit c17d59e into master May 22, 2026
@PurHur PurHur deleted the issue-50-cgi-driver branch May 22, 2026 20:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Testing: CgiDriverTest VM smoke for bin/cgi.php (parent #50) Web: CGI/1.1 request driver (stdin/stdout, env, Status line)

1 participant