[php-src] PR #22582: Fix GH-22549: GMP compound pow/shift assign asserts on negative operand
| From: | iliaal | Date: | Fri, 03 Jul 2026 19:34:12 +0000 |
| Subject: | [php-src] PR #22582: Fix GH-22549: GMP compound pow/shift assign asserts on negative operand | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-36814@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/22582
Author: iliaal
Removes a stray
ZVAL_UNDEF(return_value) in GMP's
shift_operator_helper() that clobbered op1 on a compound $x **=
gmp_init(-5) (where result aliases op1), making
pow_function's fall-through assert on an IS_UNDEF operand. Affects
POW/SL/SR; the other failure paths already return without touching return_value.
Fixes #22549