Skip to content

Commit 6ef6950

Browse files
Freeze trim characters ahead of PHP 8.6
1 parent 9c208ba commit 6ef6950

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

‎CHANGELOG.md‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# CHANGELOG
22

3+
## 2.9.2 - Unreleased
4+
5+
* Pass explicit trim characters ahead of the PHP 8.6 trim default change.
6+
37
## 2.9.1 - 2026-06-11
48

59
* Fixed the compiled runtime to emit function names as string literals, preventing arbitrary code execution.

‎bin/jp.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
if (substr($argv[$i], 0, 2) == '--') {
3333
$currentKey = str_replace('--', '', $argv[$i]);
3434
} else {
35-
$currentKey = trim($argv[$i]);
35+
$currentKey = trim($argv[$i], " \n\r\t\0\x0B");
3636
}
3737
} else {
3838
$args[$currentKey] = $argv[$i];

0 commit comments

Comments
 (0)