Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:94348 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 15807 invoked from network); 1 Jul 2016 03:34:09 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 1 Jul 2016 03:34:09 -0000 Authentication-Results: pb1.pair.com header.from=michael.vostrikov@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=michael.vostrikov@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.220.182 as permitted sender) X-PHP-List-Original-Sender: michael.vostrikov@gmail.com X-Host-Fingerprint: 209.85.220.182 mail-qk0-f182.google.com Received: from [209.85.220.182] ([209.85.220.182:36431] helo=mail-qk0-f182.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 55/59-14264-1B4E5775 for ; Thu, 30 Jun 2016 23:34:09 -0400 Received: by mail-qk0-f182.google.com with SMTP id j2so127332582qkf.3 for ; Thu, 30 Jun 2016 20:34:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=5aJZ8+3Os7AUj0gwo/3vT6rLsGScVyqIcLHUALd/kS4=; b=LN+N+cbfpH1wJH8HALFdjcP1QMeiBM/guZgB0h7LIQA56IoqB69hR+2qUrMs/mAiAr 9lV8RUPwP29tZw95HtD+4ifzAT7F0hh+EwqwTWpztu+lMSB1XG12g5w4U6cHJ6RCF+Ua bG9FQsmXdO8ZO15tuZTPVpEfOVm+k+pM8SXbpHepi3shFNlvxMsAezpIPOITwPzwLvsK 03S43sgAF4ht5j9xj1G8a9WuZc9voANXLhsYzBuKO9HoEPPIj6KR6XjbTu/Z6S3Yu4DT j81S76X2xp/r9gtL4+fLkZCcPII/p1RqSyDD4hEH+wa2Lj4/WvqxhBFEUkXdYYVX6Lp7 efHw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=5aJZ8+3Os7AUj0gwo/3vT6rLsGScVyqIcLHUALd/kS4=; b=YR7tGbXBXBxlrkPhULWDM/rRQQhYug/37VO4oBV5SzRvAOwY/3IVWhIYJ3MepMt8d9 1LWtCXIq3iDCX4Z061X5TnlRU7n73IZ/yoQ5DNt4I0VKCYxPTmUMKg5zJ65iV3pNmzhy 70fr4K8jSWNorm5kD4wv3PU7JxZVhalZiNlKiviBpesQC5SWkH9NWg65MzF8MOAGOKD2 IiGn0iqfXhq9kM8y3pcQlWhlTDTa9aYe1YnreJJn/Hq6ZVcjbrYWxOnoAMJyhX+XtmmH of6YqDxkofR4PRU8zdksD6dZYe3Fs/k55HmYG/XXPEVeYToYbOvXhCCVwrH1YNNkM/r4 W95Q== X-Gm-Message-State: ALyK8tJf/7+hvaAn7ABUGCvSERXkoPnb4nJUrfZXmbPCbP2S75V2Knyc0KeC4P8+sCaS9wmI3BR9Vic3oMd6Rw== X-Received: by 10.55.121.67 with SMTP id u64mr24847250qkc.188.1467344047182; Thu, 30 Jun 2016 20:34:07 -0700 (PDT) MIME-Version: 1.0 Received: by 10.55.53.71 with HTTP; Thu, 30 Jun 2016 20:34:06 -0700 (PDT) In-Reply-To: References: <20160620222835.BC26C1A80609@dd1730.kasserver.com> <14352177-1b49-e2ed-56a3-9a770d0ebf95@gmail.com> Date: Fri, 1 Jul 2016 08:34:06 +0500 Message-ID: To: Ryan Pallas Cc: Stanislav Malyshev , Thomas Bley , PHP Internals , Rowan Collins Content-Type: multipart/alternative; boundary=94eb2c0578d0b21c3b05368aa86b Subject: Re: [PHP-DEV] New escaped output operator From: michael.vostrikov@gmail.com (=?UTF-8?B?0JzQuNGF0LDQuNC7INCS0L7RgdGC0YDQuNC60L7Qsg==?=) --94eb2c0578d0b21c3b05368aa86b Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable > If you're answer for the other contexts is to use a template engine, > why is the answer for this not to use a template engine? > You want to add this because people don't use template engine, > so what makes you think they will use this when there is a valid solution already available? Because it is almost impossible to add template engine in a big project with PHP templates. But new version of language usually can easily be used. Because this is very frequent operation, and error or inattention with current syntax can cause security problems. Because other filters are task-dependent, not external-context-dependent. Of course, we can have own file format with PHP processing for our tasks, and external context won't be HTML, but then it is task-dependent context. Actually, HTML is also task-dependent external context, and PHP was made (and is used) specially for this task. And because for other context you may need a filter combination, so single operator will not be very useful. But last filter in a chain is our external context, and external context in very many cases is HTML/XML. 2016-07-01 1:42 GMT+05:00 Ryan Pallas : > > > On Thu, Jun 30, 2016 at 1:35 PM, =D0=9C=D0=B8=D1=85=D0=B0=D0=B8=D0=BB =D0= =92=D0=BE=D1=81=D1=82=D1=80=D0=B8=D0=BA=D0=BE=D0=B2 < > michael.vostrikov@gmail.com> wrote: > >> >> >> - Other people will ask about operator for another context >> And you can say: We already added an operator for the main web context, >> because it is the most frequently used context. If you have a lot of wor= k >> with other contexts, please use template engine. >> >> > If you're answer for the other contexts is to use a template engine, why > is the answer for this not to use a template engine? You want to add this > because people don't use template engine, so what makes you think they wi= ll > use this when there is a valid solution already available? > --94eb2c0578d0b21c3b05368aa86b--