From 9a0cf48686ba0ba8335abf6a1621c0d5f878ab75 Mon Sep 17 00:00:00 2001 From: PurHur Date: Tue, 19 May 2026 13:22:28 +0000 Subject: [PATCH] test(aot): add array_shift PHPT for LLVM compile-and-run Cover array_shift() on packed list arrays via bin/compile.php, matching the existing array_pop AOT fixture pattern. Update capabilities.md. Co-authored-by: Cursor --- docs/capabilities.md | 2 +- test/fixtures/aot/cases/array_shift.phpt | 14 ++++++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 test/fixtures/aot/cases/array_shift.phpt diff --git a/docs/capabilities.md b/docs/capabilities.md index 4e2c82b5..63a886e7 100644 --- a/docs/capabilities.md +++ b/docs/capabilities.md @@ -15,7 +15,7 @@ Auto-generated by `script/capability-matrix.php`. Do not edit by hand. | `array_push` | yes | yes | yes | standard | doc: VM only; JIT PHPT | | `array_reverse` | yes | no | no | standard | doc: VM only; not implemented for JIT in this compiler build | | `array_search` | yes | no | no | standard | doc: VM only; not implemented for JIT in this compiler build | -| `array_shift` | yes | yes | yes | standard | JIT PHPT | +| `array_shift` | yes | yes | yes | standard | JIT PHPT; AOT PHPT | | `array_slice` | yes | no | no | standard | doc: VM only; not implemented for JIT in this compiler build | | `array_sum` | yes | no | no | standard | doc: VM only; not implemented for JIT in this compiler build | | `array_unique` | yes | no | no | standard | doc: VM only; not implemented for JIT in this compiler build | diff --git a/test/fixtures/aot/cases/array_shift.phpt b/test/fixtures/aot/cases/array_shift.phpt new file mode 100644 index 00000000..28222c9b --- /dev/null +++ b/test/fixtures/aot/cases/array_shift.phpt @@ -0,0 +1,14 @@ +--TEST-- +AOT: array_shift() on packed list arrays +--FILE-- +