Skip to content

test(aot): add bin2hex PHPT for LLVM compile-and-run#310

Merged
PurHur merged 1 commit into
masterfrom
feat/aot-bin2hex-phpt
May 19, 2026
Merged

test(aot): add bin2hex PHPT for LLVM compile-and-run#310
PurHur merged 1 commit into
masterfrom
feat/aot-bin2hex-phpt

Conversation

@PurHur
Copy link
Copy Markdown
Owner

@PurHur PurHur commented May 19, 2026

Summary

  • Add test/fixtures/aot/cases/bin2hex.phpt exercising bin2hex() through bin/compile.php (empty string, binary bytes, ASCII).
  • Update docs/capabilities.md to record AOT PHPT coverage for bin2hex.

Test plan (Docker, local harness)

Image: php-compiler:22.04-dev, LLVM at /opt/llvm9 (preinstalled in dev image).

tar -cf - --exclude='.git' --exclude='.llvm' . | docker run --rm -i -e PHP_COMPILER_LLVM_PATH=/opt/llvm9 -w /compiler php-compiler:22.04-dev bash -c '
  tar -xf - && script/apply-patches.sh >/dev/null 2>&1
  php script/capability-matrix.php --check
  php vendor/bin/phpunit test/aot/AotTest.php
'

Results:

  • script/capability-matrix.php --check — OK (105 builtins)
  • test/aot/AotTest.phpOK (43 tests, 50 assertions) including new bin2hex case

Baseline survey: 42 AOT PHPT fixtures + PHPUnit web/refresh tests; LLVM present in container (not skipped).

Made with Cursor

Exercise bin2hex() through bin/compile.php end-to-end and tag the
capability matrix with AOT PHPT coverage.

Co-authored-by: Cursor <cursoragent@cursor.com>
@PurHur PurHur merged commit 141c426 into master May 19, 2026
1 check failed
@PurHur PurHur deleted the feat/aot-bin2hex-phpt branch May 19, 2026 16:23
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