Skip to content

test(aot): 004-ApiJson compile+run and json_encode PHPT#393

Merged
PurHur merged 1 commit into
masterfrom
feat/aot-json-api-coverage
May 20, 2026
Merged

test(aot): 004-ApiJson compile+run and json_encode PHPT#393
PurHur merged 1 commit into
masterfrom
feat/aot-json-api-coverage

Conversation

@PurHur
Copy link
Copy Markdown
Owner

@PurHur PurHur commented May 20, 2026

Summary

Test plan

Verified locally in Docker (php-compiler:22.04-dev, harness tar-copy via ./script/docker-ci-local.sh):

LLVM 9 found at /opt/llvm9
PHPUnit VM/compliance: OK (417 tests, 768 assertions, 6 skipped)
PHPUnit serve: OK (36 tests, 364 assertions)
JIT MCJIT probe failed → @group aot only (known; malloc lookup in jit.php)
bootstrap-aot-lint: 2 target(s) OK
PHPUnit @group aot: OK (98 tests, 255 assertions)  # was 95 tests before this PR

New cases exercised:

  • AotTestjson_encode_api PHPT
  • ExampleWebAotTest::testApiJsonExampleFile
  • ExamplesCompileTest::testAotExecuteSmoke004ApiJson

Made with Cursor

Shipped examples/004-ApiJson lacked AOT execute smoke beside lint-only
gates. Add PHPT fixture, ExampleWebAotTest, and ExamplesCompileTest so
bin/compile.php link+run is exercised for JSON API output.

Co-authored-by: Cursor <cursoragent@cursor.com>
@PurHur PurHur merged commit 0d018e7 into master May 20, 2026
1 check passed
@PurHur PurHur deleted the feat/aot-json-api-coverage branch May 20, 2026 17:27
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.

1 participant