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
4 changes: 2 additions & 2 deletions docs/capabilities.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ Auto-generated by `script/capability-matrix.php`. Do not edit by hand.
| `is_string` | yes | yes | yes | types | JIT PHPT |
| `lcfirst` | yes | yes | yes | standard | |
| `log` | yes | yes | yes | standard | |
| `ltrim` | yes | yes | yes | standard | |
| `ltrim` | yes | yes | yes | standard | AOT PHPT |
| `max` | yes | yes | yes | standard | |
| `mb_strlen` | yes | yes | yes | types | JIT PHPT |
| `min` | yes | yes | yes | standard | |
Expand All @@ -83,7 +83,7 @@ Auto-generated by `script/capability-matrix.php`. Do not edit by hand.
| `rawurlencode` | yes | yes | yes | standard | JIT PHPT; AOT PHPT |
| `realpath` | yes | yes | yes | standard | AOT PHPT |
| `round` | yes | yes | yes | standard | |
| `rtrim` | yes | yes | yes | standard | |
| `rtrim` | yes | yes | yes | standard | AOT PHPT |
| `scandir` | yes | yes | yes | standard | |
| `sin` | yes | yes | yes | standard | |
| `sizeof` | yes | yes | yes | standard | |
Expand Down
15 changes: 15 additions & 0 deletions test/fixtures/aot/cases/ltrim_rtrim.phpt
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
--TEST--
AOT: ltrim() and rtrim() with default whitespace mask
--FILE--
<?php
echo ltrim(' hello'), "\n";
echo rtrim("world\n"), "\n";
echo ltrim("\tfoo"), "\n";
echo rtrim("bar "), "\n";
--EXPECT--
hello
world
foo
bar
--EXPECT_EXIT--
0
Loading