Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:78742 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 85231 invoked from network); 5 Nov 2014 18:39:15 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 5 Nov 2014 18:39:15 -0000 Authentication-Results: pb1.pair.com smtp.mail=tyra3l@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=tyra3l@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.216.172 as permitted sender) X-PHP-List-Original-Sender: tyra3l@gmail.com X-Host-Fingerprint: 209.85.216.172 mail-qc0-f172.google.com Received: from [209.85.216.172] ([209.85.216.172:54183] helo=mail-qc0-f172.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 6F/C6-50436-2DE6A545 for ; Wed, 05 Nov 2014 13:39:14 -0500 Received: by mail-qc0-f172.google.com with SMTP id i17so1051524qcy.31 for ; Wed, 05 Nov 2014 10:39:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=3ZadhF9yoeqnV739v1/jAZ8gmVy+7/qz6mY7HrX+jmY=; b=mdPPh+vCDvej7hCm0wua9NLuj2GT5cM6/82DB5Az741C1SG8YDUl3GBGPLb3ZWzRxh i0IK9S8UyA0lop7K62mxHLcdhCA4apQPhBf/65N+TNYVWZrkIo4ZeunmkpdJA5xg8IxZ FbLZQsnYDIQ51yCGHvQqgXDjRrZYxlGNdMzoMRZR4RJhmW7FI+mu6m6bxTDwyjwjFdH2 uqvtjuVGOk2elIUZux+QWh+YTmOjRpCEDe+FkatjIebSKRXqSmQcn/iaIeLFMqE8zPhU 43QJm3Ml4gQIo5lFxAeb9ncx9igUonE/X73muidUkWzbbsuGVoXpDTE8auKkSbQpjLiT 0DLw== MIME-Version: 1.0 X-Received: by 10.140.21.230 with SMTP id 93mr11994631qgl.81.1415212751734; Wed, 05 Nov 2014 10:39:11 -0800 (PST) Received: by 10.140.93.47 with HTTP; Wed, 5 Nov 2014 10:39:11 -0800 (PST) In-Reply-To: <7CC00F2C-CE88-40A1-9A60-866F4A02F03B@ajf.me> References: <7CC00F2C-CE88-40A1-9A60-866F4A02F03B@ajf.me> Date: Wed, 5 Nov 2014 19:39:11 +0100 Message-ID: To: Andrea Faulds Cc: Jakub Zelenka , Juan Basso , Chris Wright , PHP Internals Content-Type: multipart/alternative; boundary=001a11c15036595280050720e54b Subject: Re: [PHP-DEV] Add a new flag for json_encode From: tyra3l@gmail.com (Ferenc Kovacs) --001a11c15036595280050720e54b Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Wed, Nov 5, 2014 at 6:24 PM, Andrea Faulds wrote: > > > On 5 Nov 2014, at 17:01, Ferenc Kovacs wrote: > > > > 2, there is a chance that there are some exotic apps/systems which are > > already depending on the fact that php will/was used to send out 1 > instead > > of 1.0, and while we can break BC in a major release, the migration for > > those people would be much easier if they just have to change/set some > > options for their json_encode calls. > > It=E2=80=99d be even easier if we change nothing so they don=E2=80=99t ne= ed to touch their > JSON code. > > of course, I'm just arguing that even if we later on decide that we want this to be the default behavior, we would still keep the JSON_PRESERVE_FACTIONAL_PART flag, so that decision shouldn't affect whether or not we introduce the flag now. --=20 Ferenc Kov=C3=A1cs @Tyr43l - http://tyrael.hu --001a11c15036595280050720e54b--