Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:59396 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 90950 invoked from network); 7 Apr 2012 13:30:25 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 7 Apr 2012 13:30:25 -0000 Authentication-Results: pb1.pair.com smtp.mail=charlie@charliesomerville.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=charlie@charliesomerville.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain charliesomerville.com from 209.85.160.42 cause and error) X-PHP-List-Original-Sender: charlie@charliesomerville.com X-Host-Fingerprint: 209.85.160.42 mail-pb0-f42.google.com Received: from [209.85.160.42] ([209.85.160.42:42495] helo=mail-pb0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 5E/50-23111-E61408F4 for ; Sat, 07 Apr 2012 09:30:24 -0400 Received: by pbcun1 with SMTP id un1so3851772pbc.29 for ; Sat, 07 Apr 2012 06:30:19 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=date:from:to:cc:message-id:in-reply-to:references:subject:x-mailer :mime-version:content-type:x-gm-message-state; bh=2DHddpEpMtY0xJ/iUi7Cv202GCqsh3D1LqajKWOV0vc=; b=pft8/bTmZYO3c4zoDn6VLU4dFbvLepR7oh9M4ygHkqQ+LhXBEbhK2nq8dFifT6burh m0lKYFRWMgI1x4wPfYfxGcvEJLVUvVbDIKzHj3bSYgPr2eJFgMEkjWqoO+r7hAxJ1RnX TpjiV9lHpqnHlb0sMw7PZKI0jNmaMbEDc+eBbBeQJmNxT0HV+DllRkslYiElKB9n6mV7 zY+9P/B54yumKGbC622htfbV9CreWbVPn82R+m3VN9ynW2OOLXKw+U/X6LxVZQSdEoo7 fIupGpmm2f7lsMONlJKaXjYjrZpPlSwFxesQSx7YNu58KuBsK51N35uTY/i0NRm/4B7c tjgg== Received: by 10.68.211.69 with SMTP id na5mr243237pbc.17.1333805419727; Sat, 07 Apr 2012 06:30:19 -0700 (PDT) Received: from charlie-mac.local (124-170-26-205.dyn.iinet.net.au. [124.170.26.205]) by mx.google.com with ESMTPS id i5sm9236476pbf.19.2012.04.07.06.30.16 (version=SSLv3 cipher=OTHER); Sat, 07 Apr 2012 06:30:18 -0700 (PDT) Date: Sat, 7 Apr 2012 23:30:14 +1000 To: Tom Boutell Cc: PHP Internals Message-ID: <7150E78F35F64C42B171FF37A7EAF9B0@charliesomerville.com> In-Reply-To: References: X-Mailer: sparrow 1.4.2 (build 959.4) MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="4f804166_3d1b58ba_6dd6" X-Gm-Message-State: ALoCoQlhL4VSgL7QQKzPsnHA6rvq5Y0mFL420mLU2Im9EWwZkpxY4Y0ugrphMwM2mRbqTfDJ8snC Subject: Re: [PHP-DEV] PHP class files without Now that the flamewar has died down a little I'd like to try to have a > civil discussion about this idea - *without* my admittedly > inflammatory suggestion to kill > So here is what I am seriously suggesting: > > * The default behavior doesn't change. The parser starts out in HTML mode. > > * If the CLI sees a .phpc file extension, the parser starts out in PHP > mode (no opening into HTML mode after that with ?>. > > * If a require/include statement sees a .phpc file extension, the > parser starts out in PHP mode. > > * If mod_php and FPM are able to see the path (I'm honestly not sure > if they can or not), they look for .phpc as their indication to start > out in PHP mode. If that's not possible then new options are defined > to allow Apache to be configured to tell mod_php and/or FPM to do the > right thing based on mime types etc. > > This way .php continues to behave exactly as it does today, and can > interoperate smoothly with code that uses .phpc. .phpc can require > .php and vice versa. They are friends. > > Thoughts? > > -- > Tom Boutell > P'unk Avenue > 215 755 1330 > punkave.com (http://punkave.com) > window.punkave.com (http://window.punkave.com) > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > --4f804166_3d1b58ba_6dd6--