Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:77153 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 59204 invoked from network); 11 Sep 2014 22:24:25 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 11 Sep 2014 22:24:25 -0000 Authentication-Results: pb1.pair.com smtp.mail=kris.craig@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=kris.craig@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.219.47 as permitted sender) X-PHP-List-Original-Sender: kris.craig@gmail.com X-Host-Fingerprint: 209.85.219.47 mail-oa0-f47.google.com Received: from [209.85.219.47] ([209.85.219.47:37493] helo=mail-oa0-f47.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 2A/D0-52095-81122145 for ; Thu, 11 Sep 2014 18:24:24 -0400 Received: by mail-oa0-f47.google.com with SMTP id n16so32997oag.6 for ; Thu, 11 Sep 2014 15:24:21 -0700 (PDT) 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=t3Lo22vH5sfJvCzhoSUWyabGpHH5qY79IG5JlWIAnpI=; b=uKls4w/N01eDBnzMNzTLZYa4uokybAt7H4Lc3hoIOQA6Gx//R7zMpLEO1ZdqrSRM/U FR8z2M2722EPJwbF7mX6xkixwavQolow5CDRWbtpifIOc8nw7oShy4PTiGNO/XQ90IM3 ZN1hnmcLTKFZxK52gCfgPHgC+gAx6fGqSa3GQKaVCaSMeTYZJByUIqT2kVEvsRSnnIJh XpuUFKgCQXa8ZP531RWXsQlfgUhb0W7uvX0Nwl1qqgDxYX+UOfUTKxKzR2nmT7DUY578 PtQRUkR7ngqL8lxZqSW9wJOOZ1p7r2zljafRNdnbS/w5f5+lokC1e6nkBLXj20fbEShb Xbig== MIME-Version: 1.0 X-Received: by 10.182.27.40 with SMTP id q8mr4313635obg.86.1410474261614; Thu, 11 Sep 2014 15:24:21 -0700 (PDT) Received: by 10.202.227.206 with HTTP; Thu, 11 Sep 2014 15:24:21 -0700 (PDT) In-Reply-To: References: <3619E7A6-6D76-498D-9082-855DAE937C1E@ajf.me> Date: Thu, 11 Sep 2014 15:24:21 -0700 Message-ID: To: Andrea Faulds Cc: Nikita Popov , PHP internals Content-Type: multipart/alternative; boundary=089e0122976254185a0502d1a19b Subject: Re: [PHP-DEV] Remove alternative PHP tags From: kris.craig@gmail.com (Kris Craig) --089e0122976254185a0502d1a19b Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Tue, Sep 9, 2014 at 6:32 PM, Andrea Faulds wrote: > > On 10 Sep 2014, at 01:21, Andrea Faulds wrote: > > > Isn=E2=80=99t this a bit of a needless BC break? Not very nice on peopl= e with > such codebases. It=E2=80=99s also worth pointing out that people might be= using > these to get around the XML > > > I=E2=80=99d vote for this if you wrote a convertor script to help peopl= e > migrate. Otherwise I think we=E2=80=99re just being unfair on people who = used these > tags. > > > > Actually, I=E2=80=99d like to see a Python 2to3-esque tool in general f= or PHP 7. > The easier we make the migration, the more likely people will do it. > > Some further thoughts after discussing with Tyrael (Ferenc) on IRC. > > I initially thought that I=E2=80=99m not really against removing them rea= lly, but > I think we should have a script to convert them first. Because someone, > somewhere, is gonna need it. > > But then I=E2=80=99ve thought more about it. I=E2=80=99m usually OK with = certain BC > breaks, I just don=E2=80=99t like this specific one. It doesn=E2=80=99t a= ffect me, but, > well, I don=E2=80=99t see the point. It doesn=E2=80=99t really help langu= age consistency or > anything, (OK, sure, only two sets of delimeters now, but it=E2=80=99s no= t a big > deal like some other things are), and you=E2=80=99ll force people to upda= te every > file in their codebase if they=E2=80=99re affected, assuming people who u= se > alternative tags use them everywhere. There=E2=80=99s also a security iss= ue here. > If someone uses PHP 7 with a codebase that has these alternative tags, yo= ur > code is now visible to users instead of the output, which might include > configuration details like database passwords or password hash salts. It= =E2=80=99s > also possible that people won=E2=80=99t notice this is happening if they = only used > these alternative tags in a few obscure places. > > I wonder if, really, we might be better off keeping them around and just > outputting E_DEPRECATED. If we do get rid of them in 7, we should have 5.= 7 > deprecate them. > -- > Andrea Faulds > http://ajf.me/ > > > > > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > I think Andrea raises a valid point about BC. I agree that those old tags should go, but I'd suggest we target that removal for PHP 7 and just add a deprecated flag on 5.x. --Kris --089e0122976254185a0502d1a19b--