Skip to content

Testing: ExampleWebAotTest dual QUERY_STRING without compile-time -q#266

Merged
PurHur merged 1 commit into
masterfrom
feat/example-web-aot-runtime-query
May 19, 2026
Merged

Testing: ExampleWebAotTest dual QUERY_STRING without compile-time -q#266
PurHur merged 1 commit into
masterfrom
feat/example-web-aot-runtime-query

Conversation

@PurHur
Copy link
Copy Markdown
Owner

@PurHur PurHur commented May 19, 2026

Summary

  • ExampleWebAotTest::testSimpleWebExampleFile compiles 001-SimpleWeb without -q, runs the AOT binary twice with different QUERY_STRING values, and asserts distinct HTML (Alice / Bob).
  • Refactors compile/run helpers (compileToBinary, runBinary) to mirror RuntimeSuperglobalRefreshTest.
  • Updates examples/001-SimpleWeb/example.php comments: runtime QUERY_STRING is the default AOT path; compile-time -q is optional.

Closes #260 and #244.

Test plan

  • docker run … php-compiler:22.04-dev + vendor/bin/phpunit --group llvm --filter ExampleWebAotTest (OK, 2 tests)
  • Full script/ci-local.sh on a host with working bind-mount (harness uses script/docker-ci-local.sh tar fallback)

Made with Cursor

Align the shipped 001-SimpleWeb AOT example test with RuntimeSuperglobalRefreshTest:
one binary, two CGI env runs (Alice/Bob). Closes #260 and #244.

Co-authored-by: Cursor <cursoragent@cursor.com>
@PurHur PurHur merged commit 2f12314 into master May 19, 2026
1 check was pending
@PurHur PurHur deleted the feat/example-web-aot-runtime-query branch May 19, 2026 11:40
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: Close #244 when ExampleWebAotTest matches RuntimeSuperglobalRefreshTest

1 participant