Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:78732 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 62749 invoked from network); 5 Nov 2014 16:52:51 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 5 Nov 2014 16:52:51 -0000 Authentication-Results: pb1.pair.com header.from=ajf@ajf.me; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=ajf@ajf.me; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain ajf.me designates 192.64.116.208 as permitted sender) X-PHP-List-Original-Sender: ajf@ajf.me X-Host-Fingerprint: 192.64.116.208 imap2-3.ox.privateemail.com Received: from [192.64.116.208] ([192.64.116.208:57629] helo=imap2-3.ox.privateemail.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id CA/72-50436-2E55A545 for ; Wed, 05 Nov 2014 11:52:50 -0500 Received: from localhost (localhost [127.0.0.1]) by mail.privateemail.com (Postfix) with ESMTP id C4D958C0081; Wed, 5 Nov 2014 11:52:47 -0500 (EST) X-Virus-Scanned: Debian amavisd-new at imap2.ox.privateemail.com Received: from mail.privateemail.com ([127.0.0.1]) by localhost (imap2.ox.privateemail.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id LRkTDxJSP8Vz; Wed, 5 Nov 2014 11:52:47 -0500 (EST) Received: from oa-res-26-28.wireless.abdn.ac.uk (oa-res-26-28.wireless.abdn.ac.uk [137.50.26.28]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.privateemail.com (Postfix) with ESMTPSA id 5B98F8C0080; Wed, 5 Nov 2014 11:52:46 -0500 (EST) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 8.0 \(1990.1\)) In-Reply-To: Date: Wed, 5 Nov 2014 16:52:44 +0000 Cc: Chris Wright , Ferenc Kovacs , Juan Basso , PHP Internals Content-Transfer-Encoding: quoted-printable Message-ID: <4EE02E58-9004-4AD8-9BDD-F32151DBC742@ajf.me> References: To: Jakub Zelenka X-Mailer: Apple Mail (2.1990.1) Subject: Re: [PHP-DEV] Add a new flag for json_encode From: ajf@ajf.me (Andrea Faulds) > On 5 Nov 2014, at 16:45, Jakub Zelenka wrote: >=20 > On Wed, Nov 5, 2014 at 2:33 PM, Chris Wright wrote >>=20 >>=20 >> I'm afraid I have to disagree here, I don't like the idea of changing = this >> behaviour without making it controllable >>=20 >=20 > If we make it default, then we could of course add a new constants = that > would allow the old behaviour. >=20 > 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. There=E2=80=99s actually nothing wrong with this. It=E2=80=99s not like = PHP 7 will come out tomorrow, it=E2=80=99ll be a year or so yet. So for = the meantime, people who want this behaviour could specify it. Come PHP = 7, their code keeps working and they need not change anything, as we = wouldn=E2=80=99t deprecate the flag, it=E2=80=99d just be redundant. That being said, I don=E2=80=99t think it should be the default for = reasons I=E2=80=99ve elaborated previously. -- Andrea Faulds http://ajf.me/