Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:94679 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 15035 invoked from network); 24 Jul 2016 15:54:40 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 24 Jul 2016 15:54:40 -0000 Authentication-Results: pb1.pair.com header.from=cmbecker69@gmx.de; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=cmbecker69@gmx.de; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmx.de designates 212.227.15.18 as permitted sender) X-PHP-List-Original-Sender: cmbecker69@gmx.de X-Host-Fingerprint: 212.227.15.18 mout.gmx.net Received: from [212.227.15.18] ([212.227.15.18:62969] helo=mout.gmx.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 30/FF-05797-9B4E4975 for ; Sun, 24 Jul 2016 11:54:40 -0400 Received: from [192.168.2.103] ([217.82.227.154]) by mail.gmx.com (mrgmx002) with ESMTPSA (Nemesis) id 0Mg4FJ-1bdfY930IH-00NOEC; Sun, 24 Jul 2016 17:54:28 +0200 To: Thomas Bley , internals@lists.php.net, michael.vostrikov@gmail.com References: <8a39df34-4a23-c496-15f6-20a62d27fc59@gmail.com> <4920f683-9a4d-7153-b157-a7d7ce8cbfe7@gmail.com> <933449d0-90c2-0d7a-cb80-a171289d8286@texthtml.net> <20160724145557.D52C31A80BBD@dd1730.kasserver.com> Message-ID: <6cfac572-9982-87f8-5a55-9213d978cde9@gmx.de> Date: Sun, 24 Jul 2016 17:54:37 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 In-Reply-To: <20160724145557.D52C31A80BBD@dd1730.kasserver.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:OjA2XtNrvgQhvDVqKKQ97tLFgP0/sSH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PHP-DEV] [RFC] New operator for context-dependent escaping From: cmbecker69@gmx.de (Christoph Becker) On 24.07.2016 at 16:55, Thomas Bley wrote: > In total a good rfc everybody should be happy with. I'm not happy (to put it mildly) with the RFC as it's now. The RFC speaks of *operator*, where actually start-tags[1] are meant, to start with. Using the word operator is rather confusing in this context. Then the RFC states that the new operator is compiled into the following AST: | echo escape_handler_call(first_argument, second_argument); But what happens to additional code, e.g. Contrast that to the language specification which explains: | If instead of The argument that h() might be forgotten is moot, because it's similarly easy to accidently write = instead of *, and both forms allow for equally well (semi-)automatic verification that all output is escaped. [1] -- Christoph M. Becker