Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:59991 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 64707 invoked from network); 16 Apr 2012 08:24:06 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 16 Apr 2012 08:24:06 -0000 Authentication-Results: pb1.pair.com header.from=tyra3l@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=tyra3l@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.160.42 as permitted sender) X-PHP-List-Original-Sender: tyra3l@gmail.com X-Host-Fingerprint: 209.85.160.42 mail-pb0-f42.google.com Received: from [209.85.160.42] ([209.85.160.42:50403] helo=mail-pb0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id DF/CF-05733-527DB8F4 for ; Mon, 16 Apr 2012 04:24:05 -0400 Received: by pbcun1 with SMTP id un1so6617053pbc.29 for ; Mon, 16 Apr 2012 01:24:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=G6mm4GjXPkJVnMbTd8FbC6fdVZD4Rvppe9I3lyfXFgU=; b=NbuscqYtW0OQqvZxvtaumJhWghgTlK8StfJpZ4Q0LGBsFZN1FFFp9fzt1InoNblNXt qIsC0tVr+YC4vzCrx/I3oUICfmAT+24chY8fELE+n5UcPLcM9kudSlGBBLowyyXU7WcW wEN0ccBVuipBHkAQJVDVkLp+e5XWoGXkSWZRrCGhRu/xxeZfFijZmVcU+Lmu5x87Me9Q LHZk7XaGG6lww+spbPHUcJj4MAtUBvWAKltPTNBrtc7rR8IFPcy/LAOF7iRr0nTMMpqq 1G2tbTtlxv+jsW+WjZ7mDPbe4BzKq03DQMnr98zH0I91AgrE6SDzr8HG/Z25U3KMaiJ8 WEDA== MIME-Version: 1.0 Received: by 10.68.233.234 with SMTP id tz10mr26591378pbc.68.1334564642217; Mon, 16 Apr 2012 01:24:02 -0700 (PDT) Received: by 10.68.189.34 with HTTP; Mon, 16 Apr 2012 01:24:02 -0700 (PDT) In-Reply-To: References: Date: Mon, 16 Apr 2012 10:24:02 +0200 Message-ID: To: Arvids Godjuks Cc: Kris Craig , Yasuo Ohgaki , Pierre Joye , PHP internals , Tom Boutell , Moriyoshi Koizumi Content-Type: multipart/alternative; boundary=047d7b33d6466dddc504bdc78b72 Subject: Re: [PHP-DEV] Re: Go for votes for the open tag-less PHP files From: tyra3l@gmail.com (Ferenc Kovacs) --047d7b33d6466dddc504bdc78b72 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Mon, Apr 16, 2012 at 9:46 AM, Arvids Godjuks w= rote: > What happened with the proposal/RFC for expanding include/require with > additional optional second param to allow for developers to define in pla= ce > if he want's a pure PHP file to be included or a template file with direc= t > HTML output? > I like that proposal and take it over any other, because it gives develop= er > a choice. there is a valid issue which was discussed on irc yesterday: because include/require is a language construct, not a method, one is allowed, even advised to write the include/require calls without putting out the parentheses. if we introduce additional arguments for include/require, the following code will break: echo include 'foo.bar', 'baz'; as currently it was interpreted as echo include('foo.bar'), 'baz'; ofc. we could make that the additional params to include, require would only used, if the parentheses are uses, but that would make require/include inconsistent with every other language construct, where the parentheses is optional. so we either accept this BC, or not pursue this option, but go with the new functions/opcodes like include_code/require_code or similar. --=20 Ferenc Kov=C3=A1cs @Tyr43l - http://tyrael.hu --047d7b33d6466dddc504bdc78b72--