Commit cd61e29
committed
Deparse: fix 3-arg susbtr_left deparsing
v5.41.7-43-gcdbed2a40e introduced the OP_SUBSTR_LEFT op,
which is an optimised version of OP_SUBSTR for when the offset
is zero and the replacement string is missing or ''.
Unfortunately the deparsing for this OP missed out the closing
parenthesis when the replacement string wasn't present; i.e.:
substr($lex, 0, 4);
deparsed as:
substr($lex, 0, 4;
The fix is trivial.1 parent 25cdb82 commit cd61e29
2 files changed
+10
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
3485 | 3485 | | |
3486 | 3486 | | |
3487 | 3487 | | |
3488 | | - | |
| 3488 | + | |
3489 | 3489 | | |
3490 | 3490 | | |
3491 | 3491 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1825 | 1825 | | |
1826 | 1826 | | |
1827 | 1827 | | |
| 1828 | + | |
| 1829 | + | |
| 1830 | + | |
| 1831 | + | |
| 1832 | + | |
| 1833 | + | |
| 1834 | + | |
| 1835 | + | |
1828 | 1836 | | |
1829 | 1837 | | |
1830 | 1838 | | |
| |||
0 commit comments