Re: [RFC] Config setting to force all math operations to pass through BCMath library.
| From: | Anthony Ferrara | Date: | Tue, 06 Mar 2012 21:18:42 +0000 |
| Subject: | Re: [RFC] Config setting to force all math operations to pass through BCMath library. | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-58684@lists.php.net to get a copy of this message | ||
I initially like the concept (arbitrary precision operations).
But please don't add another ini setting. Especially one where
*logic* can change depending on the setting. I don't want a case
where pow(2, 65)-1 will return different answers depending on the ini.
That's just asking for problems.
Instead, perhaps a pythonic approach may be useful (storing as
int/float for small values, but auto-converting to arbitrary precision
if the int/float can't exactly represent what was
requested/computed)... Just a thought to make it useful without the
ini complexity or performance hits.
Although this will present a significant BC break (internally, zend
engine wise), so it would probably be limited to a major release
anyway...
Just a thought...
Anthony
On Tue, Mar 6, 2012 at 4:03 PM, Michael Morris <dmgx.michael@gmail.com> wrote:
> https://wiki.php.net/rfc/php_ini_bcmath_default
>
> This is the only other RFC I've been rummaging around in my head but
> hadn't brought up.
>
> --
> PHP Internals - PHP Runtime Development Mailing List
> To unsubscribe, visit: http://www.php.net/unsub.php
>