[php-src] PR #22371: Warn when number base conversion loses precision
| From: | Sjord | Date: | Sat, 20 Jun 2026 12:31:22 +0000 |
| Subject: | [php-src] PR #22371: Warn when number base conversion loses precision | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-36515@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/22371
Author: Sjord
_php_math_basetozval is used for base_convert, bindec, hexdec and octdec. It uses an integer or
double for the internal representation of the number. When the input number is too large to fit in
there, it loses precision. This commit emits a notice when this happens.
Discussion thread: https://news-web.php.net/php.internals/131364