Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:59746 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 93108 invoked from network); 11 Apr 2012 18:27:53 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 11 Apr 2012 18:27:53 -0000 Authentication-Results: pb1.pair.com smtp.mail=chrisstocktonaz@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=chrisstocktonaz@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.213.42 as permitted sender) X-PHP-List-Original-Sender: chrisstocktonaz@gmail.com X-Host-Fingerprint: 209.85.213.42 mail-yw0-f42.google.com Received: from [209.85.213.42] ([209.85.213.42:33605] helo=mail-yw0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 50/E0-23245-82DC58F4 for ; Wed, 11 Apr 2012 14:27:52 -0400 Received: by yhfq11 with SMTP id q11so726857yhf.29 for ; Wed, 11 Apr 2012 11:27:47 -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=7mP+LjF3aWIbitYTvkst+EyDUQcxZM/wxZMzm+ozMZs=; b=GJoqpnIir/QQNOJaw8r9dbM0Oym6pyOPqukkKpbm4gU6z7pYAwTeVcN/I1FPJOogRe TrtooNlnipMU2LR4jXIUVazqA13317De9oH5jmmOogOKpp9iFTjD0ESenaWxCvnWzvpN /PBVEBeKCYm2mRIcV0snaxIomozftH24xZ57l79AlWwoqihd7e4TCpcy7ozGjpKgrMuU i1BdvWwMRU6lOZ/K223ZSrMsxvXPLMM+Bui/KgbzokQn6aIkNZCTZzJhL7njvZdGHKP4 TFBnr9oZPLtovwfd+He6dL92RjSCqdrGpHsK3QwrCWWpSJFn7FPgLpzPDUAi+3KBWl3i GqVw== MIME-Version: 1.0 Received: by 10.50.89.168 with SMTP id bp8mr3165124igb.3.1334168866766; Wed, 11 Apr 2012 11:27:46 -0700 (PDT) Received: by 10.42.174.9 with HTTP; Wed, 11 Apr 2012 11:27:46 -0700 (PDT) In-Reply-To: References: Date: Wed, 11 Apr 2012 11:27:46 -0700 Message-ID: To: Tom Boutell Cc: PHP Internals Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: [PHP-DEV] UPDATED RFC version 1.1: source files without opening wrote: > On Wed, Apr 11, 2012 at 1:48 PM, Chris Stockton > wrote: >> I have read the RFC and I although from what I gather it seems that >> .phpp is a recommendation and not a requirement, but I want to make >> absolutely sure. > > > That is correct, it is not a requirement. However if you know of any > reason why .phpp would be a bad choice of file extension for PHP > source files without in them, now would be a good time to > share that input. > Something about PHP advocating it makes me feel a little uneasy, I guess it can at least help frameworks have a unified standard for their auto loaders etc. My main concern is people expecting .phpp will "just work" when including via apache on shared hosting servers etc. End up with a file full of code, passwords, who knows what downloaded or displayed in a browser. The burden of responsibility here is not entirely clear for me, but I am just not sure I like proposing a separate PHP extension, just seems a little wrong. However from what I see no one else has said anything so perhaps I am wrong. I will say if I was developing a framework I might try to think of other alternatives for my auto loading / detecting of pure php files. I.E.a specific folder like "purephplib" a specific portion of the file name or something like "Class_Name_Pure" (like this much less then folders, but I think more then a file extension. Just my two cents. >> My only other issue is that we are not really following the guidelines >> for reserved constants, since "include" is not part of a "include" >> extension and a actual language construct it feels like it should live >> inside the reserved PHP_* constants. There may be projects that make >> use of "INCLUDE_ONCE" as a constant or maybe not, regardless I think >> it should follow the documented naming guidelines to be safe. > > I wasn't aware of those guidelines. This makes sense to me. > PHP_INCLUDE_ONCE, then? > I will let others comment here, was just my initial thoughts. -Chris