Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:88521 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 99239 invoked from network); 27 Sep 2015 17:22:58 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 27 Sep 2015 17:22:58 -0000 Authentication-Results: pb1.pair.com header.from=jakub.php@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=jakub.php@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.213.195 as permitted sender) X-PHP-List-Original-Sender: jakub.php@gmail.com X-Host-Fingerprint: 209.85.213.195 mail-ig0-f195.google.com Received: from [209.85.213.195] ([209.85.213.195:32913] helo=mail-ig0-f195.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id A9/69-06395-1F528065 for ; Sun, 27 Sep 2015 13:22:57 -0400 Received: by igbbp9 with SMTP id bp9so5696883igb.0 for ; Sun, 27 Sep 2015 10:22:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=pGoO7r9i18LIR5AbCDVHWwXTM0ku8HlD3BXhzakWzuM=; b=fqC+7bJykre38UWcyPMg2a4cvXImv0sft0rplNKmrLTi6ee5yA1BwLPliObbgq9EHa KRB1hkSVRD6ZeImRAlBtPjv2FNTnhsVjl9Hzl0F9KymFAFAW+ktJtvFFF38mlTp7236y DwfLmVuFM0Pwlrcm779R0NRdqKdk5VOF74T6JDn3dPOzNrMiCwFbfWw72fJsn+3PrfeM gTvUKKVPTXJcYUhYPdCZolmo7eDOtiBA1JNeW6RhA6wc7cdAVGh+WpRYqJFkS0UCl4An sR6jfgDa9hFb89CthKi0RlYC6dl0LQ24g9l1Y0SMkuDQj9F/t8I7MCpUWSiF/bj4pLv8 CpHA== MIME-Version: 1.0 X-Received: by 10.50.122.10 with SMTP id lo10mr12619101igb.76.1443374574282; Sun, 27 Sep 2015 10:22:54 -0700 (PDT) Sender: jakub.php@gmail.com Received: by 10.107.145.69 with HTTP; Sun, 27 Sep 2015 10:22:54 -0700 (PDT) In-Reply-To: References: <023701d0f4a4$a0da4f60$e28eee20$@belski.net> Date: Sun, 27 Sep 2015 18:22:54 +0100 X-Google-Sender-Auth: RcFD3gy0LehDBsWkCmqnsHVeUSA Message-ID: To: Yasuo Ohgaki Cc: Anatol Belski , Kalle Sommer Nielsen , Ferenc Kovacs , "internals@lists.php.net" Content-Type: multipart/alternative; boundary=089e01538362c72da90520bdd4b0 Subject: Re: [PHP-DEV] Re: [RFC] [DISCUSSION] More precise float value From: bukka@php.net (Jakub Zelenka) --089e01538362c72da90520bdd4b0 Content-Type: text/plain; charset=UTF-8 Hi Yasuo, On Fri, Sep 25, 2015 at 1:10 AM, Yasuo Ohgaki wrote: > Hi all, > > On Fri, Sep 25, 2015 at 7:49 AM, Yasuo Ohgaki wrote: > > No problem. I'll update so that 0 mode is for 7.1. > > JSON's is better to use larger precision. So this change is targeted > > to 5.6 and 7.0. > > > > Let me know if you have comments on this. > > The RFC is updated. > https://wiki.php.net/rfc/precise_float_value > > Patches for 7.1/7.0/5.6 will be updated soon. 7.0/5.6's change will be > one liner. > i.e. Simply change to use PG(serialize_precision) instead of EG(precision). > > I don't really like that change in a point release. It will be a huge mess and it's also quite a big BC break for point release in a function that is used a lot on production systems. Let me remind you that it might change considerably generated data size for some cases. It would be probably a good idea to check with RM's if they are ok with such BC break before voting. What worries me even more is changing anything like this in 5.6 where json ext is not used on the most used Linux distros (Debian based and RHEL based ones) where json-c is used by default. It means that you would have to ask Remi to change it too. If it was changed, then it becomes quite difficult to find out what precision is actually used in which version. I think that it would be just a huge mess... :). Also there is no option for voters who would like to use serialize_precision for json in 7.1. I would probably use one vote with more options. Something like this: JSON precision change - no change - use serialize_precision in 5.6 - use serialize_precicion in 7.0 - use serialize_precision in 7.1 - use json_precision in 7.1 The 5.6 and 7.0 should be there of course only if RM's are happy with this BC break. I wouldn't personally allow that especially for 5.6. I think that this change can wait till 7.1 In addition, the mode 0 voting is slightly unclear to me. It's one thing to introduce mode 0 and another make it default. I'm actually for making it default but it would be good to have that option in the voting. So how about something like this?: - do not introduce mode 0 - introduce mode 0 but keep current defaults - introduce mode 0 and make it default Cheers Jakub --089e01538362c72da90520bdd4b0--