Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:72487 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 59254 invoked from network); 11 Feb 2014 23:39:50 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 11 Feb 2014 23:39:50 -0000 Authentication-Results: pb1.pair.com header.from=lester@lsces.co.uk; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=lester@lsces.co.uk; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain lsces.co.uk from 217.147.176.204 cause and error) X-PHP-List-Original-Sender: lester@lsces.co.uk X-Host-Fingerprint: 217.147.176.204 mail4.serversure.net Linux 2.6 Received: from [217.147.176.204] ([217.147.176.204:48693] helo=mail4.serversure.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id AF/B0-55284-4C4BAF25 for ; Tue, 11 Feb 2014 18:39:49 -0500 Received: (qmail 20958 invoked by uid 89); 11 Feb 2014 23:39:45 -0000 Received: by simscan 1.3.1 ppid: 20951, pid: 20955, t: 0.0572s scanners: attach: 1.3.1 clamav: 0.96/m:52 Received: from unknown (HELO linux-dev4.lsces.org.uk) (lester@rainbowdigitalmedia.org.uk@81.138.11.136) by mail4.serversure.net with ESMTPA; 11 Feb 2014 23:39:45 -0000 Message-ID: <52FAB58E.3080701@lsces.co.uk> Date: Tue, 11 Feb 2014 23:43:10 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:27.0) Gecko/20100101 Firefox/27.0 SeaMonkey/2.24 MIME-Version: 1.0 To: internals@lists.php.net References: <52FA67A4.3030708@lerdorf.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Re: [RFC] No PHP tags From: lester@lsces.co.uk (Lester Caine) Yasuo Ohgaki wrote: > I like the way PHP works. Embedded script nice for web applications and we > should not drop it, but it's better for security if it is restricted to > only where it is needed. OK Re-reading the whole RFC ... it is all about 'template_mode' being used to switch tag handling on and off? PHP 'Open' tag being optional seems to be secondary? ------------------ function render_template($template, $template_vars) { ini_set('template_mode', 'on); // Older PHP ignores // Do what ever required as template ini_set('template_mode', 'off'); // Older PHP ignores } ------------------ When switching on template_mode what actually happens? Is it actually in PHP mode so that you have to add a ?> before loading raw html and then 'close' with a