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 @@ -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 | |
Expand Down
13 changes: 13 additions & 0 deletions test/fixtures/aot/cases/bin2hex.phpt
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
--TEST--
AOT: bin2hex() empty and binary strings
--FILE--
<?php
echo bin2hex(''), "\n";
echo bin2hex("\x00\x0f\xff"), "\n";
echo bin2hex('ab'), "\n";
--EXPECT--

000fff
6162
--EXPECT_EXIT--
0
Loading