[php-src] PR #11296: Fix string coercion for $a .= $a
| From: | iluuu1994 | Date: | Mon, 22 May 2023 14:55:58 +0000 |
| Subject: | [php-src] PR #11296: Fix string coercion for $a .= $a | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-22561@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/11296
Author: iluuu1994
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