RE: [PHP-DEV] Re: [RFC] [DISCUSSION] More precise float value
| From: | Anatol Belski | Date: | Mon, 21 Sep 2015 19:35:06 +0000 |
| Subject: | RE: [PHP-DEV] Re: [RFC] [DISCUSSION] More precise float value | ||
| References: | 1 2 3 4 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-88390@lists.php.net to get a copy of this message | ||
Hi Yasuo,
> -----Original Message-----
> From: yohgaki@gmail.com [mailto:yohgaki@gmail.com] On Behalf Of Yasuo
> Ohgaki
> Sent: Sunday, September 20, 2015 11:49 PM
> To: Kalle Sommer Nielsen <kalle@php.net>
> Cc: Anatoliy Belsky <ab@php.net>; Ferenc Kovacs <tyra3l@gmail.com>;
> internals@lists.php.net
> Subject: Re: [PHP-DEV] Re: [RFC] [DISCUSSION] More precise float value
>
> Hi Anatol and Ferenc,
>
> On Sat, Sep 19, 2015 at 7:15 AM, Kalle Sommer Nielsen <kalle@php.net> wrote:
> > I'm sorry I have not caught this any earlier, but even without
> > consulting with Anatol, I'm not keen on adding this into 7.0, we are
> > in RC stage, and I want us to focus on a stable release instead of
> > adding more potential issues, I suggest you target 7.1 instead in the
> > RFC.
> >
> > (Ferenc and Anatol cc'd)
>
> I was expecting this kind of reply for this RFC.
> What do you think?
>
> This RFC contains JSON float value precision change for PHP 5.6 so that PHP
> would not loose floating number information, as well as more precise float
> handling option for PHP 7.0.
>
> FYI, var_dump()'s float precision was changed to use serialize_precision as bug
> fix before.
>
Thanks for the ping. IMHO this is the stuff for 7.1. I actually saw the discussions previously, but
was rather thinking you was targeting 7.1 as that was already the time of the feature freeze.
Please keep in mind that we effectively have two RCs to do the remaining stabilizations. And we
probably should as much as possible. Because this patch it's rather an enhancement to the
current functionality which is not indeed broken - I wouldn't see it as critical for 7.0. It
should be voted (and discussed if necessary) for 7.1, so we don't loop away from our current
situation.
BTW I also had a comment there in the PR about https://github.com/php/php-src/pull/1455/files#diff-c84859666ff690a113d55ef1899d8bf4R149
- so if mode 0 ignores ndigits, why set it to 17 (or anything else). Seems like an unnecessary
action, but snprintf is used quite frequently. But just as a notice on the side.
Regards
Anatol