[php-src] Issue #8150: locale + bcmath = "function argument is not well-formed"
| From: | cmb69 | Date: | Thu, 24 Feb 2022 13:49:49 +0000 |
| Subject: | [php-src] Issue #8150: locale + bcmath = "function argument is not well-formed" | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-240014@lists.php.net to get a copy of this message | ||
Issue: https://github.com/php/php-src/issues/8150
Comment Author: cmb69
As work-around, either pass strings instead of floats (if necessary, convert floats to strings with
something like
number_format($float, bcscale(), ".", "")). Also
note that very large floats can still cause issues under PHP 8, see https://bugs.php.net/bug.php?id=66959.