Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:78734 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 62976 invoked from network); 5 Nov 2014 16:53:00 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 5 Nov 2014 16:53:00 -0000 Authentication-Results: pb1.pair.com header.from=are.you.winning@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=are.you.winning@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.216.179 as permitted sender) X-PHP-List-Original-Sender: are.you.winning@gmail.com X-Host-Fingerprint: 209.85.216.179 mail-qc0-f179.google.com Received: from [209.85.216.179] ([209.85.216.179:48910] helo=mail-qc0-f179.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id E2/82-50436-BE55A545 for ; Wed, 05 Nov 2014 11:52:59 -0500 Received: by mail-qc0-f179.google.com with SMTP id o8so886841qcw.10 for ; Wed, 05 Nov 2014 08:52:56 -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=c0bXR46JAqhWi+Las5zPl+kAagQUFZ2My8KKAiCi7bs=; b=Ta/TXc+CTX1f9w9Lm7+mm6WNmwmi9kvp5Gni+WK6sYxZqCXVRrr62mwUGPrgwH5RuH VKPCM2XZV9OSGPlNaSfckpXonueS/S/DZUbcDm04NjwVFN9bYFWkmuMaDwch8Ew7vSxf 5/Idp4C6b5PjVVpJb9qDMB0mO2oWWy9eMGYSG90lVU4XWjuG1IfpFGgobVd2tk2t90bv yb96c/RwsFQd31nSNAvKpnOODXOVn36chkedMPvo5bXq8WRalMyJuwsSYjpLT1VS9Wje ICRnmdu6dX27F+I6e9HLc4em2LW5osdoCYUgW9YDh3fCy+rzLB0RBs3D+0zSS5xormHI 4D3A== MIME-Version: 1.0 X-Received: by 10.140.83.7 with SMTP id i7mr85609878qgd.14.1415206375998; Wed, 05 Nov 2014 08:52:55 -0800 (PST) Sender: are.you.winning@gmail.com Received: by 10.140.239.194 with HTTP; Wed, 5 Nov 2014 08:52:55 -0800 (PST) In-Reply-To: References: Date: Wed, 5 Nov 2014 16:52:55 +0000 X-Google-Sender-Auth: tMlCmArUusoTeKOm1n2UPol6H4k Message-ID: To: Jakub Zelenka Cc: Chris Wright , Ferenc Kovacs , Juan Basso , PHP Internals Content-Type: multipart/alternative; boundary=001a11c11a685350ae05071f69a0 Subject: Re: [PHP-DEV] Add a new flag for json_encode From: cw@daverandom.com (Chris Wright) --001a11c11a685350ae05071f69a0 Content-Type: text/plain; charset=UTF-8 On 5 November 2014 16:45, Jakub Zelenka wrote: > > On Wed, Nov 5, 2014 at 2:33 PM, Chris Wright wrote >> >> >> I'm afraid I have to disagree here, I don't like the idea of changing >> this behaviour without making it controllable >> > > If we make it default, then we could of course add a new constants that > would allow the old behaviour. > > What I'm trying to say is that it doesn't make sense to add something to > micro release and then change it (deprecate it) in PHP 7. I don't have > problem with a new flag if the current behaviour stays but it should be > decided before we make this change. There is no big hurry that we need to > add it immediately. > > I'm sorry, but I don't understand why it would need to be deprecated. For me "making it the default behaviour" would mean "changing the default value of the $flags argument to JSON_PRESERVE_FACTIONAL_PART". The flag would still function in exactly the same way - old code which pass flags explicitly would continue to work in the same way, and any code which did not want the new behaviour would only have to pass 0 to flags to get that behaviour back. > Cheers > > Jakub > --001a11c11a685350ae05071f69a0--