Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:59398 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 93827 invoked from network); 7 Apr 2012 13:36:04 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 7 Apr 2012 13:36:04 -0000 Authentication-Results: pb1.pair.com smtp.mail=crocodile2u@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=crocodile2u@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.216.170 as permitted sender) X-PHP-List-Original-Sender: crocodile2u@gmail.com X-Host-Fingerprint: 209.85.216.170 mail-qc0-f170.google.com Received: from [209.85.216.170] ([209.85.216.170:60193] helo=mail-qc0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 35/01-23111-2C2408F4 for ; Sat, 07 Apr 2012 09:36:02 -0400 Received: by qcmt36 with SMTP id t36so1958146qcm.29 for ; Sat, 07 Apr 2012 06:35:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=AobdZ16zwJ9HpJBesGl4DtcNzMify37Ylnk++iE8Zuo=; b=tnEQkq+RQDsdo+KOguFQbqMMt0f8YfrqofQamwhb4wUZue+EiOEh4LYo8ld3nOY63o 0xv3w5hmpo+OA1hWHbcRix0q+G2jyf7S87LDyXzjswk3S1cvBlNE8KGBcN1LUIfpvUkY Zzx8+ddWh4W5JqmFYNawilvySSz2JeIRohgL9hLQOYpofaccIliL/oy4wkswaPiz+QrS zxRST9a/MLyvcgkjaYKkpWdZQsLCV/M4aywCH4Q3esgCRhfIDa4Yw0MGXB00MU4y3a22 4gSHAwGdAvAFmPl0Q3YoOlzjSji46Uuq6zaio382bGI6VTzO2hl0Gr4wbtEgX3U4dJ+S lxCg== Received: by 10.224.219.4 with SMTP id hs4mr1712086qab.83.1333805759821; Sat, 07 Apr 2012 06:35:59 -0700 (PDT) MIME-Version: 1.0 Received: by 10.229.39.205 with HTTP; Sat, 7 Apr 2012 06:35:39 -0700 (PDT) In-Reply-To: References: Date: Sat, 7 Apr 2012 17:35:39 +0400 Message-ID: To: Tom Boutell Cc: PHP Internals Content-Type: multipart/alternative; boundary=20cf30050d748377ee04bd16daf6 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 > > --20cf30050d748377ee04bd16daf6--