Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:77126 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 80109 invoked from network); 10 Sep 2014 01:32:50 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 10 Sep 2014 01:32:50 -0000 Authentication-Results: pb1.pair.com smtp.mail=ajf@ajf.me; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=ajf@ajf.me; 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:33652] helo=imap2-3.ox.privateemail.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 68/78-08634-14AAF045 for ; Tue, 09 Sep 2014 21:32:49 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.privateemail.com (Postfix) with ESMTP id B00998C0081; Tue, 9 Sep 2014 21:32:45 -0400 (EDT) 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 eWRFv0B8qTpw; Tue, 9 Sep 2014 21:32:45 -0400 (EDT) Received: from oa-res-27-90.wireless.abdn.ac.uk (oa-res-27-90.wireless.abdn.ac.uk [137.50.27.90]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.privateemail.com (Postfix) with ESMTPSA id 8CC818C0080; Tue, 9 Sep 2014 21:32:44 -0400 (EDT) Content-Type: text/plain; charset=windows-1252 Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\)) In-Reply-To: <3619E7A6-6D76-498D-9082-855DAE937C1E@ajf.me> Date: Wed, 10 Sep 2014 02:32:41 +0100 Cc: PHP internals Content-Transfer-Encoding: quoted-printable Message-ID: References: <3619E7A6-6D76-498D-9082-855DAE937C1E@ajf.me> To: Nikita Popov X-Mailer: Apple Mail (2.1878.6) Subject: Re: [PHP-DEV] Remove alternative PHP tags From: ajf@ajf.me (Andrea Faulds) On 10 Sep 2014, at 01:21, Andrea Faulds wrote: > Isn=92t this a bit of a needless BC break? Not very nice on people = with such codebases. It=92s also worth pointing out that people might be = using these to get around the XML =20 > I=92d vote for this if you wrote a convertor script to help people = migrate. Otherwise I think we=92re just being unfair on people who used = these tags. >=20 > Actually, I=92d like to see a Python 2to3-esque tool in general for = 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=92m not really against removing them really, = but I think we should have a script to convert them first. Because = someone, somewhere, is gonna need it. But then I=92ve thought more about it. I=92m usually OK with certain BC = breaks, I just don=92t like this specific one. It doesn=92t affect me, = but, well, I don=92t see the point. It doesn=92t really help language = consistency or anything, (OK, sure, only two sets of delimeters now, but = it=92s not a big deal like some other things are), and you=92ll force = people to update every file in their codebase if they=92re affected, = assuming people who use alternative tags use them everywhere. There=92s = also a security issue here. If someone uses PHP 7 with a codebase that = has these alternative tags, your code is now visible to users instead of = the output, which might include configuration details like database = passwords or password hash salts. It=92s also possible that people won=92t= 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/