Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:59571 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 18031 invoked from network); 9 Apr 2012 22:17:54 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 9 Apr 2012 22:17:54 -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:58507] helo=mail-lb0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id B0/52-34074-110638F4 for ; Mon, 09 Apr 2012 18:17:54 -0400 Received: by lbbgf7 with SMTP id gf7so2221902lbb.29 for ; Mon, 09 Apr 2012 15:17:51 -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 :cc:content-type:content-transfer-encoding:x-gm-message-state; bh=U7jNxE3WJeYBvEHLuOQYh3GW3dY3fJhV8NIyOs1QtsQ=; b=B102hGxd+pibYaV6tYjAT/LO7cvAKbHODHeAw466HfOXoswV1UYaUSkwPEjhV9/Ufk BQg0bRIB8K3tl4XZICpBBdvzcXvmIqxwqlxba6usleCiVNivkHs4kH7+zQxxsYsFhMvs bWppS19v3V3fHSXSWcLQYN7E3pJdNE1BVuUCb859O1pKUSDoM5La3+HT6zqZEgGW5Wqw nuxmesaT4+sCJWs3XGJLokeZW59MWpkxuiR/0Iqze5+6qq6K6zDWhc1XjDxI3v94W8Qr Us8ZhRurtJbqeYW8cVA5NjlH7Zbv2SH9kuEKn9yZgdQ+sJ94cDirD2MonSS+rHcAXJMV ywng== MIME-Version: 1.0 Received: by 10.112.83.163 with SMTP id r3mr378818lby.80.1334009871227; Mon, 09 Apr 2012 15:17:51 -0700 (PDT) Received: by 10.152.19.106 with HTTP; Mon, 9 Apr 2012 15:17:51 -0700 (PDT) In-Reply-To: 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 18:17:51 -0400 Message-ID: To: Kris Craig Cc: Luke Scott , PHP Internals Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Gm-Message-State: ALoCoQmshX1Z5XLTPNttvJQtfwxYxZtVsE+kj0F39jszXz0kLtE5v9y1vqdLJIX4prvTk3iPO/1E Subject: Re: [PHP-DEV] RFC: source files without opening tag From: tom@punkave.com (Tom Boutell) My original goal was to stop typing still seems unnecessary and perhaps divisive, but if it were preferable to the majority to prohibit ?> in a pure code file, I could live with that as long as classic PHP files are also 100% supported and remain the default. I'm trying to craft a broadly acceptable compromise that still achieves the original goal of allowing people to write "just code" in a class file. On Mon, Apr 9, 2012 at 6:06 PM, Kris Craig wrote: > > > 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). =A0Since we don't want any BC breaks, we at very lea= st >> > need >> > it to start with "> > wasn't >> > mean to be parsed. =A0So 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!=A0 That damned > I already know what everyone's reaction will be, and it is probably a REA= LLY > bad idea, but I feel obligated to at least mention it:=A0 Should we consi= der > replacing " perhaps starting in PHP 6?=A0 No need to get out the torches and pitchfor= ks, > everyone!=A0 As insane and problematic as that would be (i.e. BC break wi= th > roughly 1/3 of the internet lol), I felt as though the subject should at > least be broached.=A0 ;P > >> >> >> > This sounds like the best approach, given the limitations involved wit= h >> > webserver configurations. =A0I'm still very much against though allowi= ng >> > ?> >> > within one of these files (included or otherwise), as it really defeat= s >> > 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?=A0 I.e. a require flag = that > tells it to parse the included PHP file as pure PHP, regardless of whethe= r > or not it has the workable/necessary or not, but it's different enough that I think splitti= ng > it off into a separate proposal would probably make the most sense. > >> >> >> Luke >> >> > >> > --Kris > > --=20 Tom Boutell P'unk Avenue 215 755 1330 punkave.com window.punkave.com