Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:59515 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 18269 invoked from network); 9 Apr 2012 16:16:22 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 9 Apr 2012 16:16:22 -0000 Authentication-Results: pb1.pair.com header.from=tom@punkave.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=tom@punkave.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain punkave.com designates 209.85.217.170 as permitted sender) X-PHP-List-Original-Sender: tom@punkave.com X-Host-Fingerprint: 209.85.217.170 mail-lb0-f170.google.com Received: from [209.85.217.170] ([209.85.217.170:45950] helo=mail-lb0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id F9/D0-14133-55B038F4 for ; Mon, 09 Apr 2012 12:16:21 -0400 Received: by lbbgf7 with SMTP id gf7so1978002lbb.29 for ; Mon, 09 Apr 2012 09:16:18 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:x-gm-message-state; bh=5Hw0ujxrsi2sbkyso97SjgIjQZsQnjCQNffCvm8MW6Y=; b=g+yIkmYUqLkH6df0TticxzIUeOalHlqohWSvtwJ0CXGvE88AM2sGGEdmsDLWnP2Ec6 gk6zXg+mJ0mkmlg1L5VVqz1nuhF6ZYhmVwI/udjyMqSKvODBQf8tmcw0YkBc4aroAqZd JfobZVdS6U/8G00l/Sxm7jDgQg5O9rsZ/N/hTDP/1GHbWw1BpaMNMd5r570bpR+5GV9s DE5d3pQrVkb5JdKfsGoTtY+ypsptRDCIDvF9LxJqmLFp/JtFczEWGOgaYdfDLe0U48F/ GtJ+NPmOVSrpANPrbRlFkgiK1xhzg2x6CujxFp2QyWePTfNIUe7f5rfnqXK2l8E/sFn2 FxWw== MIME-Version: 1.0 Received: by 10.152.130.167 with SMTP id of7mr12176218lab.36.1333988178492; Mon, 09 Apr 2012 09:16:18 -0700 (PDT) Received: by 10.152.19.106 with HTTP; Mon, 9 Apr 2012 09:16:18 -0700 (PDT) In-Reply-To: <-5877502932356715576@unknownmsgid> References: <-5877502932356715576@unknownmsgid> Date: Mon, 9 Apr 2012 12:16:18 -0400 Message-ID: To: PHP Internals Content-Type: text/plain; charset=ISO-8859-1 X-Gm-Message-State: ALoCoQkGmMvJjzE7MqfVDfwfXotSedWlNT6NUEJRDZijrfR6ewdf4ygxrBOsFY3bIqkHkwagOcRF Subject: Re: [PHP-DEV] RFC: source files without opening tag From: tom@punkave.com (Tom Boutell) It sounds like you are proposing to gradually kill the use of PHP for templating entirely, which I don't think is something people would vote for. I sometimes use perfectly good older frameworks that do use .php files for templating in a reasonable way, and I'm one of the advocates for migrating away from starting everything with wrote: > Tom, > > As I've said before I don't think new keywords are the answer. They > will just pollute the language even further. > > I also don't think an ini setting is a bad thing either. It is often > used in PHP as a way to transition from way of doing things to > another. First you introduce it with it being off by default, then on > by default, then deprecate the old behavior. It's quite normal in > PHP's history. > > In another email someone mentioned doing two rfcs. In both cases are > we talking about removing confusing to keep track of what is being talked about. If that is the > case, continue reading. > > I would prefer the starting Just explicitly forbid the ending ?> tag and treat text before the > opening or throw an error. > > That is at least how I would prefer the "code" mode as most > non-template files only start with compatibility. > > If you must add keywords it should be something like require_template > NOT require_code/require_file. Templates are the exception, not the > norm. > > Luke Scott > > On Apr 8, 2012, at 9:32 AM, Tom Boutell wrote: > >> I have written an RFC proposing backwards-compatible support for >> source files without an opening > >> https://wiki.php.net/rfc/source_files_without_opening_tag >> >> This RFC is not yet listed at https://wiki.php.net/rfc. I am not sure >> what the requirements are to get it added to the "Under Discussion" >> session and get the ball rolling formally. Please enlighten and I'll >> do whatever is required. >> >> Thanks! >> >> -- >> Tom Boutell >> P'unk Avenue >> 215 755 1330 >> punkave.com >> window.punkave.com >> >> -- >> PHP Internals - PHP Runtime Development Mailing List >> To unsubscribe, visit: http://www.php.net/unsub.php >> -- Tom Boutell P'unk Avenue 215 755 1330 punkave.com window.punkave.com