Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:93639 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 327 invoked from network); 30 May 2016 19:07:07 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 30 May 2016 19:07:07 -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.41 as permitted sender) X-PHP-List-Original-Sender: jakub.php@gmail.com X-Host-Fingerprint: 209.85.213.41 mail-vk0-f41.google.com Received: from [209.85.213.41] ([209.85.213.41:33935] helo=mail-vk0-f41.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 56/71-26200-B5F8C475 for ; Mon, 30 May 2016 15:07:07 -0400 Received: by mail-vk0-f41.google.com with SMTP id c189so231857703vkb.1 for ; Mon, 30 May 2016 12:07:07 -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; bh=bf+VtQcqhG0WhC/oK53n+7ibJ/mi0qLXI681sTQRZxI=; b=0uHUe7olZC26xBGPR7BoozW8t1+sdLAyZVhv6bu7chcCrD8f47DPXzLcUCNMxX/4dK dlh32Iya+DM2pv/Pb3OSLYpYktx1ydM7keZWmA5AFRHldQoMtNDUMlozmNJhaG8F1I9p qB2WYHOb9qpuqdH40OwocoMvjiPCZxuLdE53sIlxvpV4cc8XVs5Zj5Mzgu+ZTcRaHXZM 0R+9ILoujyaNsWRB2o3uaeJlUGQOwgDx6f8Cl37vCE+DE3DHBMZzb1gFhO+8sgkvnz/9 ssNA7fUxchlmaUQlSUgOWg9vBuKUDuzX232huh6tyg1oyRSCGIE5ARQhrfCYjPyW9mIx +buA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:date :message-id:subject:from:to:cc; bh=bf+VtQcqhG0WhC/oK53n+7ibJ/mi0qLXI681sTQRZxI=; b=hRlZANlLC2UgNGnAPzN1CulspzziDGTpZ7rP/xFU6Za+e7DtKXuDu2zN0QIAXnFu+7 YO15y5MN7qBIOTuEevk/6lr0VP8D7YHSZDdcyf8fJw8JQyLzRZls7fhxzzHjZ/okFo1R GW4st+3NTJqcH3wlsVvLqOQwFrItURiLvQISLaV9ZsCHpTehPQn7KXVADtmgbWtG8+9x 0GfgOqgwWRAFYsAQedE54u0gtM2m/QSINyI3NL6b65Bhb+mYeJbH5UA/5MrbbJPMI2+t T7UZdmpxneanaHyX+yrYzHBg6SNnV7VITlKH9gKZJARH/rIF8PJovZ/0b86TlZVqpHJW ornw== X-Gm-Message-State: ALyK8tKZpnR3bQG/PQJw/d6FBIbnXgBUaIL76PDvRMGmz9ceg62ACQiYzh7dylvzo72c+3BoK8WAByInMsbT1Q== MIME-Version: 1.0 X-Received: by 10.31.234.199 with SMTP id i190mr13808337vkh.104.1464635224781; Mon, 30 May 2016 12:07:04 -0700 (PDT) Sender: jakub.php@gmail.com Received: by 10.31.172.65 with HTTP; Mon, 30 May 2016 12:07:04 -0700 (PDT) In-Reply-To: References: Date: Mon, 30 May 2016 20:07:04 +0100 X-Google-Sender-Auth: nW4quQ0kRFNedl2O4zuTmPOjaEo Message-ID: To: PHP internals list Cc: Nikita Popov , Yasuo Ohgaki Content-Type: multipart/alternative; boundary=94eb2c0950364c7dc3053413f607 Subject: Re: [PHP-DEV] [RFC] [DISCUSSION] More precise float value From: bukka@php.net (Jakub Zelenka) --94eb2c0950364c7dc3053413f607 Content-Type: text/plain; charset=UTF-8 On Mon, May 30, 2016 at 7:46 PM, Fleshgrinder wrote: > On 5/30/2016 8:28 PM, Nikita Popov wrote: > > This proposal adds a new json.precision setting. Why? I've been told that > > this is more flexible, which is fair enough, but imho we should have very > > strong reasons for introducing new ini settings. Reasons that go beyond > "it > > might be useful to someone ... maybe?" So what's the particular use-case > > here? Where is it necessary to export inaccurate floating point numbers > in > > JSON? And should such a use-case indeed exist, why is this a global > setting > > rather than an option of json_encode? Furthermore, note that even without > > this new ini option, you always have the option of temporarily changing > > serialize_precision for a json_encode call, if you *really* need it. > > > > I second this remark especially because in my book JSON is just another > form of serialization, hence, it should use the same setting. > > Additionally, how is it possible that global ini settings -- which in my > opinion is a sensitive area -- can go through with a 50%+1 vote? > Not exactly a language change as it's changing default just for serialization and json but it's probably on the edge so will change it to 66 in the next revision... ;) Cheers --94eb2c0950364c7dc3053413f607--