Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:59569 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 14867 invoked from network); 9 Apr 2012 22:06:54 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 9 Apr 2012 22:06:54 -0000 Authentication-Results: pb1.pair.com header.from=kris.craig@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=kris.craig@gmail.com; spf=pass; 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: kris.craig@gmail.com X-Host-Fingerprint: 74.125.82.54 mail-wg0-f54.google.com Received: from [74.125.82.54] ([74.125.82.54:49843] helo=mail-wg0-f54.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id B8/A1-34074-D7D538F4 for ; Mon, 09 Apr 2012 18:06:53 -0400 Received: by wgbdq13 with SMTP id dq13so3634652wgb.11 for ; Mon, 09 Apr 2012 15:06:49 -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=RYUuuGiFySJC4tiBQoziknCmDEg8OGqN6v0TNn0Ff+I=; b=ouch8I3Rdj85isGza0OetNevbRjiedhWPdefpaOwVToxWEuvpnjELB0kOrpN1PqujR bQ1x1NxlWPyw9NLAdSiQHfbMAs44LcsmS6fYIFS3tVjfxWxXlCj0dzaQq7cFuoZjZ+xD HeUzSbee62Zh80vDYmg4+AlYVKo8aEvkks/pc8ZbvhaJd2uOH9wMGg7BdBG+JrHarYL0 OGzvQhB0+DyX7nS0Uil90UQ4L01D+KtgNFUyNKj4YrcjZFNruFbn3hjQJoduZc9Uq2+4 LCOi37FYTlGgZeWv7y5qqoVbaiS80oVwa9PVaY6uBYH3lTKlaDjXEQAN/D1SrDtlG+2Z bDpw== MIME-Version: 1.0 Received: by 10.216.139.12 with SMTP id b12mr5018525wej.4.1334009209677; Mon, 09 Apr 2012 15:06:49 -0700 (PDT) Received: by 10.223.79.67 with HTTP; Mon, 9 Apr 2012 15:06:49 -0700 (PDT) In-Reply-To: <-4280157191882548448@unknownmsgid> References: <-5877502932356715576@unknownmsgid> <-3647345967307864634@unknownmsgid> <4F831FAE.2030208@ralphschindler.com> <4775322189440202047@unknownmsgid> <4F833682.2000301@ralphschindler.com> <4F833AB0.2060306@sugarcrm.com> <4F8340E6.90005@sugarcrm.com> <4F834D82.4030601@developersdesk.com> <-4280157191882548448@unknownmsgid> Date: Mon, 9 Apr 2012 15:06:49 -0700 Message-ID: To: Luke Scott Cc: Tom Boutell , PHP Internals Content-Type: multipart/alternative; boundary=0016e6d6257411e7c104bd46396f Subject: Re: [PHP-DEV] RFC: source files without opening tag From: kris.craig@gmail.com (Kris Craig) --0016e6d6257411e7c104bd46396f Content-Type: text/plain; charset=ISO-8859-1 On Mon, Apr 9, 2012 at 2:38 PM, Luke Scott wrote: > > Obviously, it would need to be at the top of the PHP file (whitespace > > notwithstanding). Since we don't want any BC breaks, we at very least > need > > it to start with " wasn't > > mean to be parsed. So how about we keep it simple and just use a single, > > " would be allowed after > that. > > Anything before that (in the file itself) would also be ignored and > throw a > > warning. > > Remember, Bah, right! That damned > > This sounds like the best approach, given the limitations involved with > > webserver configurations. I'm still very much against though allowing ?> > > within one of these files (included or otherwise), as it really defeats > the > > whole purpose and would just encourage poor architecture without any > > countervailing benefit. > > Agreed. Disallowing ?> in a file in pure code means only one at the top. > > A flag on require/include is acceptable to me, as long as the default > mode is configurable in the php.ini file (when none are specified). > Perhaps we should split that into a separate RFC? I.e. a require flag that tells it to parse the included PHP file as pure PHP, regardless of whether or not it has the > Luke > > > > > --Kris > --0016e6d6257411e7c104bd46396f--