Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:87968 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 95806 invoked from network); 1 Sep 2015 02:08:31 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 1 Sep 2015 02:08:31 -0000 Authentication-Results: pb1.pair.com smtp.mail=yohgaki@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=yohgaki@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.220.176 as permitted sender) X-PHP-List-Original-Sender: yohgaki@gmail.com X-Host-Fingerprint: 209.85.220.176 mail-qk0-f176.google.com Received: from [209.85.220.176] ([209.85.220.176:36395] helo=mail-qk0-f176.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 02/87-39890-E9805E55 for ; Mon, 31 Aug 2015 22:08:30 -0400 Received: by qkbp67 with SMTP id p67so26571976qkb.3 for ; Mon, 31 Aug 2015 19:08:27 -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:from:date:message-id :subject:to:cc:content-type; bh=EUgjLBRUk15wu8X2JzHG1wWspOKivAVgOJyx6eEqaTk=; b=tz9co3medBQ4Hq+cyNlKAXs5Ia1OSVfoO9djcmqCn9CkIQaXnznthGmltz61uDIgfR oGqZpAGuyEEOPMWnpX3M3JNTYkk06UNvH3wQvqUh2swQZoFq/9XGuh3I6gZd0ASvA5ki OZuLRnuS85/taDdmMyb9jRz+DcTlPtO0o3MVWyTHUHiG7pRa5xg5C/mAofzLehc5+6n6 noWc6c7jfyc1l55XF5c+6fJXRp/ipJXxsHCPVa2UtygkqcYioznAIuApROBPdbA6KnhX j11GZgZWKqYkDyrqelEFPaQunF9f8DFAuD1DN6pR04LtOAz/+3dTm6HEEXCbbbDcQn3/ sZqg== X-Received: by 10.129.49.3 with SMTP id x3mr17295932ywx.56.1441073307360; Mon, 31 Aug 2015 19:08:27 -0700 (PDT) MIME-Version: 1.0 Sender: yohgaki@gmail.com Received: by 10.129.81.87 with HTTP; Mon, 31 Aug 2015 19:07:47 -0700 (PDT) In-Reply-To: References: Date: Tue, 1 Sep 2015 11:07:47 +0900 X-Google-Sender-Auth: TPHB0aB1le-nAa-wtXBm3XE82v8 Message-ID: To: Nikita Popov Cc: Jakub Zelenka , Anthony Ferrara , "internals@lists.php.net" Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] json_decode/encode should return full precision values by default From: yohgaki@ohgaki.net (Yasuo Ohgaki) Hi all, Sorry, I was a bit busy during August. On Wed, Aug 5, 2015 at 5:37 PM, Yasuo Ohgaki wrote: > I sent work in progress PR for this and updated the RFC. > > https://github.com/php/php-src/pull/1455 > TODO: Add/modify tests. Add 0 mode support for PG(precision). Add > WDDX/XMLRPC PG(serialize_precision) support. > > https://wiki.php.net/rfc/precise_float_value The patch and wiki is updated. It's better to minimize the change at this time. I didn't look into WDDX/XMLRPC which uses EG(precision), if anyone insist, I'll look into it. I don't mind much if anyone suggests to drop PHP 5.6 part. I'll drop the part before RFC discussion to focus PHP7. It should only affects php_gcvt() and php.ini's precision setting. i.e. var_dump/var_export/ json_encode/echo/print. Tests passes, but if anyone notice misbehavior, please let me know. I would like to start RFC discussion in a few days. Thank you. -- Yasuo Ohgaki yohgaki@ohgaki.net