Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:59443 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 82259 invoked from network); 7 Apr 2012 20:49:10 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 7 Apr 2012 20:49:10 -0000 Authentication-Results: pb1.pair.com header.from=yohgaki@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=yohgaki@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.160.170 as permitted sender) X-PHP-List-Original-Sender: yohgaki@gmail.com X-Host-Fingerprint: 209.85.160.170 mail-gy0-f170.google.com Received: from [209.85.160.170] ([209.85.160.170:35989] helo=mail-gy0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id D3/32-23111-548A08F4 for ; Sat, 07 Apr 2012 16:49:10 -0400 Received: by ghbg2 with SMTP id g2so1767670ghb.29 for ; Sat, 07 Apr 2012 13:49:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type; bh=KZc5/UbY86KXnGk1Q7sabtRrQYy4+yu2jMZj0DcuiNE=; b=NrtOmmuwFwjgoQbGiWWcjtcE91qg6ctt16EttvIF5XGwwtpM6qt1LxmonLC/lMZJrK iv3uoHmSXH7zYBQMSkhr+Mrts16nzrynPvPHkRCVvH4MxhEAkY25cN1VaqsJS1TNQAbV 7625z/Pu1Knd4AP/LBXbnm9oA7XGD5aZN79gH/b80ksJWM6cXMoCqMblmIifv85BqyQR 9iza27TrHtua2odFWHjNgfEmb2cgHio4hOzRBgBhQni0VBrXvQ+QtdKHXzORv8F5KXnW /J6ULrmQB4L59WLt2AeLm23HYikHA/X8d8vXaU8BmTfEGl63P6dLzHFHux4S4Sr3jDVh oGlg== Received: by 10.236.154.2 with SMTP id g2mr1803665yhk.103.1333831747310; Sat, 07 Apr 2012 13:49:07 -0700 (PDT) MIME-Version: 1.0 Sender: yohgaki@gmail.com Received: by 10.146.86.14 with HTTP; Sat, 7 Apr 2012 13:48:27 -0700 (PDT) In-Reply-To: References: Date: Sun, 8 Apr 2012 05:48:27 +0900 X-Google-Sender-Auth: cQ3vOewiTgmoi1etAVG26AKce4U Message-ID: To: Tom Boutell Cc: PHP Internals Content-Type: text/plain; charset=ISO-8859-1 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 > window.punkave.com > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php >