From d9b4bd648ce022f50c0cc78c11f312bc6e5e1ca4 Mon Sep 17 00:00:00 2001 From: PurHur Date: Tue, 19 May 2026 16:23:07 +0000 Subject: [PATCH] test(aot): add bin2hex PHPT for LLVM compile-and-run Exercise bin2hex() through bin/compile.php end-to-end and tag the capability matrix with AOT PHPT coverage. Co-authored-by: Cursor --- docs/capabilities.md | 2 +- test/fixtures/aot/cases/bin2hex.phpt | 13 +++++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 test/fixtures/aot/cases/bin2hex.phpt diff --git a/docs/capabilities.md b/docs/capabilities.md index 10aec1fb..b6c72142 100644 --- a/docs/capabilities.md +++ b/docs/capabilities.md @@ -21,7 +21,7 @@ Auto-generated by `script/capability-matrix.php`. Do not edit by hand. | `array_unique` | yes | no | no | standard | doc: VM only; not implemented for JIT in this compiler build | | `array_values` | yes | yes | yes | standard | JIT PHPT; AOT PHPT | | `basename` | yes | yes | yes | standard | AOT PHPT | -| `bin2hex` | yes | yes | yes | standard | | +| `bin2hex` | yes | yes | yes | standard | AOT PHPT | | `bindec` | yes | yes | yes | standard | | | `boolval` | yes | yes | yes | standard | AOT PHPT | | `ceil` | yes | yes | yes | standard | | diff --git a/test/fixtures/aot/cases/bin2hex.phpt b/test/fixtures/aot/cases/bin2hex.phpt new file mode 100644 index 00000000..612344fd --- /dev/null +++ b/test/fixtures/aot/cases/bin2hex.phpt @@ -0,0 +1,13 @@ +--TEST-- +AOT: bin2hex() empty and binary strings +--FILE-- +