Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:58691 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 80708 invoked from network); 6 Mar 2012 21:58:48 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 6 Mar 2012 21:58:48 -0000 Authentication-Results: pb1.pair.com smtp.mail=keisial@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=keisial@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.82.54 as permitted sender) X-PHP-List-Original-Sender: keisial@gmail.com X-Host-Fingerprint: 74.125.82.54 mail-ww0-f54.google.com Received: from [74.125.82.54] ([74.125.82.54:39149] helo=mail-ww0-f54.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 61/00-15021-A88865F4 for ; Tue, 06 Mar 2012 16:58:34 -0500 Received: by wgbdq13 with SMTP id dq13so4636249wgb.11 for ; Tue, 06 Mar 2012 13:58:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=PdQz1DQXT+yUu7wQB71wTgsnTsoHBPZNop5i4b8OQI0=; b=bvcfXoDP2IiJDKd0nEFpvkxhxDW5a9zczRs2lfrgZV0LMXE7h9uoFYbiWFgjpeSDvj 7kCSvM52yHLmLv6nmjsx4FOdAuZ+4ZYny4xj6oKwqBg6vem0R77YAZnBiain7kMYliS1 2gEdj8DHs0IZYHdJVq3EdDqavarUfl1iIzbIU0iQdkye2pbOWtC+qzHX+2wjcPPdc/Gl YEQzAnRm2vrXG7kuhi9L3JI0UiChlKzG+9e6hzaCcwCubESdHgQq5UMXduw5u224MBD2 nvRmzcR2im/EqQ8X34kBIrwqcYNaP8/HMGU5WDDfaPqDwoByzNjLKjCahJm1Aa/553Ie dyLg== Received: by 10.180.95.197 with SMTP id dm5mr11067937wib.20.1331071111616; Tue, 06 Mar 2012 13:58:31 -0800 (PST) Received: from [192.168.1.26] (86.red-80-28-65.adsl.dynamic.ccgg.telefonica.net. [80.28.65.86]) by mx.google.com with ESMTPS id ep17sm30081116wid.2.2012.03.06.13.58.29 (version=SSLv3 cipher=OTHER); Tue, 06 Mar 2012 13:58:30 -0800 (PST) Message-ID: <4F5689B0.7020709@gmail.com> Date: Tue, 06 Mar 2012 23:03:28 +0100 User-Agent: Thunderbird MIME-Version: 1.0 To: Michael Morris CC: PHP Internals List References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] [RFC] Namespace and Parse tags on Include and Require From: keisial@gmail.com (=?ISO-8859-1?Q?=C1ngel_Gonz=E1lez?=) On 06/03/12 15:45, Michael Morris wrote: > I have made a wiki account with user name MichaelMorris - I don't > think I have permissions to submit an RFC as of yet. I'll post this > here for now. I've brought this up before, but can now simplify the > original proposal since the decision to always have addresses much of the original problem. > > These changes apply to include, require, include_once and > require_once. Two new arguments for these functions are proposed for > introduction. > > (...) > > Problems > The largest problem is with IDE's. There is no current convention to > warn them that the file is pure PHP. However, I think this can be > mitigated by adopting an extension for php include files -- *.pif, > *.iphp are two possibilities. The language itself doesn't need to > give a care about this directly. Tagless files interpreted as php is the wrong way to go. I think you should instead propose it as: * A file included in that mode MUST begin with is forbidden in such mode unless followed by EOF.