Re: [RFC] Floating Point support in GMP extension
| From: | Johannes Schlüter | Date: | Mon, 21 Apr 2014 21:07:41 +0000 |
| Subject: | Re: [RFC] Floating Point support in GMP extension | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-73756@lists.php.net to get a copy of this message | ||
On Mon, 2014-04-21 at 23:40 +0300, Park Framework wrote:
> For backward compatibility in php.ini set default values
> gmp.default_precision = 0
No. INI setting is *not* backwards compatibility. An ini setting means
that *everybody* has to care about it and mind it and either check or
set it.
An alternative is a runtime setting (gmp_set_compatiility(true) ), in
case the change is really important. I haven't looked further but
behavior should not depend on ini. We made the mistake and should learn
not repeat.
johannes