[php-src] PR #24210: ext/opcache: Do not reuse the assigned range through typed references
| From: | iliaal | Date: | Thu, 08 Oct 2026 23:38:45 +0000 |
| Subject: | [php-src] PR #24210: ext/opcache: Do not reuse the assigned range through typed references | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-39276@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/24210
Author: iliaal
Assigning through a reference to a typed property coerces the value, but range inference copied the
assigned operand's range to the result, so
($GLOBALS['real'] =
9007199254740993) & 1 with $GLOBALS['real'] bound to a float
property is folded to 1 instead of 0. The range is now reused only when the target is a CV that
cannot be a reference. Split out of #24110.