[php-src] PR #24709: Fix GH-24708: Assertion failure when error handler unsets binary op operand
| From: | lazerg | Date: | Mon, 26 Oct 2026 01:06:30 +0000 |
| Subject: | [php-src] PR #24709: Fix GH-24708: Assertion failure when error handler unsets binary op operand | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-39885@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/24709
Author: lazerg
When the "Undefined variable" warning for the second operand runs an error handler that
unsets the first operand, the helper passes an IS_UNDEF op1 to the operator function and hits the
assertion. The arithmetic and bitwise helpers, plus the DIV and POW handlers, now treat op1 as null
in that case, the same way an undefined variable is handled.
Fixes #24708