Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/capabilities.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 |
Expand Down
14 changes: 14 additions & 0 deletions test/fixtures/aot/cases/array_shift.phpt
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
--TEST--
AOT: array_shift() on packed list arrays
--FILE--
<?php
$a = array(10, 20, 30);
echo array_shift($a), "\n";
echo count($a), "\n";
echo array_shift($a), "\n";
echo count($a), "\n";
--EXPECT--
10
2
20
1
Loading