Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:75844 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 83749 invoked from network); 22 Jul 2014 13:13:02 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 22 Jul 2014 13:13:02 -0000 Authentication-Results: pb1.pair.com header.from=hello@apfelbox.net; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=hello@apfelbox.net; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain apfelbox.net from 37.139.17.48 cause and error) X-PHP-List-Original-Sender: hello@apfelbox.net X-Host-Fingerprint: 37.139.17.48 mail.apfelbox.net Received: from [37.139.17.48] ([37.139.17.48:49593] helo=mail.apfelbox.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id C8/B1-09870-C536EC35 for ; Tue, 22 Jul 2014 09:13:01 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.apfelbox.net (Postfix) with ESMTP id 4FBA712097F; Tue, 22 Jul 2014 13:12:57 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at mail.apfelbox.net Received: from mail.apfelbox.net ([127.0.0.1]) by localhost (mail.apfelbox.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 5td3FHoHdqxB; Tue, 22 Jul 2014 13:12:52 +0000 (UTC) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 8.0 \(1971.5\)) In-Reply-To: Date: Tue, 22 Jul 2014 15:12:50 +0200 Cc: Nikita Popov , PHP internals Content-Transfer-Encoding: quoted-printable Message-ID: <8E0F15AF-8C44-4C19-BE64-A939D897BE77@apfelbox.net> References: To: Ferenc Kovacs Subject: Re: [PHP-DEV] Re: [VOTE] Uniform Variable Syntax From: hello@apfelbox.net (Jannik Zschiesche) Hi Ferenc, > On 22.07.2014, at 14:38, Ferenc Kovacs wrote: >=20 > On Mon, Jul 14, 2014 at 6:35 PM, Nikita Popov = wrote: >=20 >> On Mon, Jul 7, 2014 at 4:18 PM, Nikita Popov = wrote: >>=20 >>> Hi internals! >>>=20 >>> I've started the vote on the Uniform Variable Syntax RFC: >>>=20 >>> https://wiki.php.net/rfc/uniform_variable_syntax#vote >>>=20 >>> You can review the discussion about this RFC here: >>>=20 >>> http://markmail.org/message/mr4ihbubfbdxygci >>>=20 >>> The vote requires a 2/3 majority and is planned to end on = 2014-07-14. The >>> RFC targets PHP 6. >>>=20 >>=20 >> The vote closed with 30 in favor and 1 against, as such the RFC is >> accepted. >>=20 >> I will delay merging the patch until the situation regarding phpng = and PHP >> 6 is more clear. >>=20 >> Thanks, >> Nikita >>=20 >=20 > Hi Nikita, >=20 > Derick mentioned in his blogpost( > http://derickrethans.nl/uniform-variable-syntax.html) that "You can't > really write a scanner for it, as the code could already have been > converted.". > I know that you posted = https://gist.github.com/nikic/ffd019ef78b72934c7cc > which uses PhpParser\Lexer from your PHP-Parser project, so my > understanding was that it is possible to detect those expressions with = both > the current php stable version and with the new one containing the > uniform_variable_syntax changes. the point Derick was trying to make is that you can=E2=80=99t build a = scanner that automatically checks whether you rewrote this particular = piece of code already or not. You can find the code pieces which match the constructs affected by the = BC, but the scanner can=E2=80=99t decide, whether they are already fixed = (=3D they are ok as they stand). Which makes the burden of the update smaller, but you still need to = check every match yourself, whether it will (still) work. (at least I read it like this) Cheers Jannik >=20 > --=20 > Ferenc Kov=C3=A1cs > @Tyr43l - http://tyrael.hu