Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:93636 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 95380 invoked from network); 30 May 2016 18:47:14 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 30 May 2016 18:47:14 -0000 Authentication-Results: pb1.pair.com header.from=php@fleshgrinder.com; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=php@fleshgrinder.com; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain fleshgrinder.com from 77.244.243.87 cause and error) X-PHP-List-Original-Sender: php@fleshgrinder.com X-Host-Fingerprint: 77.244.243.87 mx106.easyname.com Received: from [77.244.243.87] ([77.244.243.87:60960] helo=mx201.easyname.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 8F/60-26200-0BA8C475 for ; Mon, 30 May 2016 14:47:13 -0400 Received: from cable-81-173-133-15.netcologne.de ([81.173.133.15] helo=[192.168.178.20]) by mx.easyname.com with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1b7SDL-0006P2-IH; Mon, 30 May 2016 18:46:59 +0000 Reply-To: internals@lists.php.net References: To: Nikita Popov , Jakub Zelenka Cc: "internals@lists.php.net" , Yasuo Ohgaki Message-ID: Date: Mon, 30 May 2016 20:46:53 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.1.0 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="gJvDKWhergCnLKLC6gT29JF7lHcUnMrgL" X-ACL-Warn: X-DNSBL-BARRACUDACENTRAL Subject: Re: [PHP-DEV] [RFC] [DISCUSSION] More precise float value From: php@fleshgrinder.com (Fleshgrinder) --gJvDKWhergCnLKLC6gT29JF7lHcUnMrgL Content-Type: multipart/mixed; boundary="rR0Vc61ncHaDa5QX0xfeR7RVOQwG71gSG" From: Fleshgrinder Reply-To: internals@lists.php.net To: Nikita Popov , Jakub Zelenka Cc: "internals@lists.php.net" , Yasuo Ohgaki Message-ID: Subject: Re: [PHP-DEV] [RFC] [DISCUSSION] More precise float value References: In-Reply-To: --rR0Vc61ncHaDa5QX0xfeR7RVOQwG71gSG Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 5/30/2016 8:28 PM, Nikita Popov wrote: > This proposal adds a new json.precision setting. Why? I've been told th= at > this is more flexible, which is fair enough, but imho we should have ve= ry > strong reasons for introducing new ini settings. Reasons that go beyond= "it > might be useful to someone ... maybe?" So what's the particular use-cas= e > 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 set= ting > rather than an option of json_encode? Furthermore, note that even witho= ut > this new ini option, you always have the option of temporarily changing= > serialize_precision for a json_encode call, if you *really* need it. >=20 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? --=20 Richard "Fleshgrinder" Fussenegger --rR0Vc61ncHaDa5QX0xfeR7RVOQwG71gSG-- --gJvDKWhergCnLKLC6gT29JF7lHcUnMrgL Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJXTIqlAAoJEOKkKcqFPVVrGCUP/iD+p55bobf/z1e+4jov2Y72 dEjDNSDThe/MPEpdaxjqgSqpcf0GstnY+p7vuTk0K4BcZ0fvjh7Au3t5xqtv1DQ1 qMNKEmHOIj9ybuipBfrn/IdP7Dx+KXhmX0rXKAGOPT6DDqK8bB9IWE2eA3x+9Fc7 hRBiY+mJ+sMrrA7aSwqn03llP4PCveiVoHkxbltWnQfTzbdSFxpWZ43O3T/pP5Fb 9s1zZZgN0unsmWvuEDR6K0hF6ITGrbfeLHh1sVtpKWdRTJf0kAFaLGFIynVgb+82 kKJDQk5rzzSMvF0Zm/0540PFDzRc/BIQb+HLVtWLPXMX6ZYCvF3I8OnSU5ldn7kp 8uETsJOB6MV5tEfqGex/CXrtaB47hBFPZsevr7zRtzbGcqG/2be+TOE+tLvpZK3s BCYycw99CPg1Yz7SzbOnOBp2WDicDIE8sqtqmmOUjL/TBp6MAV9uICvqqQr4mvqQ yg4KyY+FnXTzdCfzj0WeTJA8rDsMqe1me1nr/p6omJ69rcs7p/SgjrQkqRheQB/n UUfNJn2Kjmt8K/+7E1YkS5jAK99HIXSjZpNGjajVXyfZFVxRq11DFn4WY/AUYbZA THv7eGt/sSs1Heb5GXRJ15Rr6TeYrb2/cHrIpjsKbh5bEBmGlKp7T7cJ9QjZSKIQ 2IXRJ4QQhWFqyt08YJJl =kxFz -----END PGP SIGNATURE----- --gJvDKWhergCnLKLC6gT29JF7lHcUnMrgL--