Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:78730 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 59037 invoked from network); 5 Nov 2014 16:35:03 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 5 Nov 2014 16:35:03 -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.223.171 as permitted sender) X-PHP-List-Original-Sender: jakub.php@gmail.com X-Host-Fingerprint: 209.85.223.171 mail-ie0-f171.google.com Received: from [209.85.223.171] ([209.85.223.171:36532] helo=mail-ie0-f171.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id AC/B1-50436-6B15A545 for ; Wed, 05 Nov 2014 11:35:02 -0500 Received: by mail-ie0-f171.google.com with SMTP id x19so1053900ier.2 for ; Wed, 05 Nov 2014 08:34:59 -0800 (PST) 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=24RKov09rjB8FdktEEHpQ0hZKZkJOVamTyb+1FCc0k0=; b=s0lTE9XHiqG0RIin63QnOF1PvxSFgq3aNUxe+Nl5M2UJi7SIdEjrnvyFFMlHa+cTwk syEOlvHBkJoer6HtNvJEKMrB8bm4vE2N1nUUX9Y+eBxxlenaFGSLL+eav1cPIVxGfSq+ xRSoLkdA1DVU9WxzLp7qS0VNtx6LEDV6yQ7h8mbuXiC4IfXoEvJ8CPocMSt3+hLy0eJC ICJF3DlWLuI+hn5MaJUVS4yR4VbLzCZagqkBW5dPdVWeuABNTBkPLaQiUgl/TNFUc9R1 wMFlWrPddV1WYS0SwDeZnRPVOvHRSyvEa+6MHxNH7OvhYpJWK/Jn00brRgMHUyvy+Bcb nyRw== MIME-Version: 1.0 X-Received: by 10.50.122.100 with SMTP id lr4mr33299730igb.9.1415205299612; Wed, 05 Nov 2014 08:34:59 -0800 (PST) Sender: jakub.php@gmail.com Received: by 10.107.11.217 with HTTP; Wed, 5 Nov 2014 08:34:59 -0800 (PST) In-Reply-To: References: Date: Wed, 5 Nov 2014 16:34:59 +0000 X-Google-Sender-Auth: aGcS2cI3hlOC9TKX6JvdajKaAKw Message-ID: To: Juan Basso Cc: Chris Wright , Ferenc Kovacs , PHP Internals Content-Type: multipart/alternative; boundary=001a11c1f7a42af28305071f2992 Subject: Re: [PHP-DEV] Add a new flag for json_encode From: bukka@php.net (Jakub Zelenka) --001a11c1f7a42af28305071f2992 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Wed, Nov 5, 2014 at 4:23 PM, Juan Basso wrote: > > I also prefer to use =E2=80=8Bdifferent flags if we enable by default. So= if this > behavior is enabled by default in 7.0 the JSON_PRESERVE_FRACTIONAL_PART > is deprecated and a new flag is created to disable it. > > In resume of this thread, seems everyone if fine in having the flag JSON_= PRESERVE_FRACTIONAL_PART > added on 5.6 and leave this flag off by default to keep the BC. The only > discussion is enable or not this behavior in 7.0. > No! If it should become default in 7.0, then it doesn't make to add a new flag. What's the point of adding new flag to 5.6.x and then deprecate it in 7.0...? That's just mess IMHO. It makes sense only if it doesn't become default though. Cheers Jakub --001a11c1f7a42af28305071f2992--