-
Notifications
You must be signed in to change notification settings - Fork 8k
Commit 5c74164
Fix string coercion for $a .= $a (#11296)
free_op2_string may be set to false when the operands are not strings, and
`result == op1 == op2`, by re-using the same string for both operands. In that
case, the string should still be copied to result because result is not actually
a string. Also change the op1 branch to stay consistent.
Introduced by GH-10049 1 parent c230aa9 commit 5c74164
2 files changed
+12
-2
lines changedOriginal file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | + | ||
2 | + | ||
3 | + | ||
4 | + | ||
5 | + | ||
6 | + | ||
7 | + | ||
8 | + | ||
9 | + | ||
10 | + |
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2005 | 2005 |
| |
2006 | 2006 |
| |
2007 | 2007 |
| |
2008 | - | ||
2008 | + | ||
2009 | 2009 |
| |
2010 | 2010 |
| |
2011 | 2011 |
| |
| |||
2018 | 2018 |
| |
2019 | 2019 |
| |
2020 | 2020 |
| |
2021 | - | ||
2021 | + | ||
2022 | 2022 |
| |
2023 | 2023 |
| |
2024 | 2024 |
| |
|
0 commit comments