Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:59399 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 95183 invoked from network); 7 Apr 2012 13:39:32 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 7 Apr 2012 13:39:32 -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.160.170 as permitted sender) X-PHP-List-Original-Sender: tom@punkave.com X-Host-Fingerprint: 209.85.160.170 mail-gy0-f170.google.com Received: from [209.85.160.170] ([209.85.160.170:42786] helo=mail-gy0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 65/51-23111-393408F4 for ; Sat, 07 Apr 2012 09:39:32 -0400 Received: by ghbg2 with SMTP id g2so1707993ghb.29 for ; Sat, 07 Apr 2012 06:39:29 -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 :content-type:x-gm-message-state; bh=3VLO1SrBTlRqqFFGV6PDMp5KzZeAydYIuv7prdLbpLU=; b=k+ag8+bV/o809tenQYAVq8hTMauErZNKJh7kRoQLsVtO8yz4axOT5Y5uX+FOa4lqxP +6OjtdeqkkBoxeW9ihlPRDb3y6Kef+zEJKfsI+gEkVe20hiZjz8vmyfQ5/5BxHLTFW4Z Io4oGg6UyyYd9OPsTk/cC9ptwMSwszKHERJ/C282TZr/ZLflfHrbbMnOWSVeh/ujBRIC YC8UfNr6VttxxciVUURyCZ4S928uTQWnzODlJ7XGNJu3NChinWoqLc78wGfaASsLOhoo y885QKQ4MYgJgqYxvV48TzKtiI/3Bbbs30JjMGmhxzZ4jmzcO/gFz+h5OIADOxsFRcDa 9ddw== MIME-Version: 1.0 Received: by 10.236.78.2 with SMTP id f2mr1011906yhe.118.1333805969215; Sat, 07 Apr 2012 06:39:29 -0700 (PDT) Received: by 10.100.35.16 with HTTP; Sat, 7 Apr 2012 06:39:29 -0700 (PDT) In-Reply-To: References: Date: Sat, 7 Apr 2012 09:39:29 -0400 Message-ID: To: PHP Internals Content-Type: text/plain; charset=ISO-8859-1 X-Gm-Message-State: ALoCoQleTQzbZZkuPSc4BcjVkWHCdw1Z0ASul6UWEjOkA2QFfNMPayM5Rr82uNgkKuPZHzNbU5XF Subject: Re: [PHP-DEV] PHP class files without wrote: > Hello, Tom... > > Are you seriously that bothered with ' you serious when talking changing reguire/include behaviour just to satisfy > your wish? > > To be also serious, I would mention the possibility of including URLs. There > is no such thing as file name extension in URLs. Thus your idea should be > forgot. Personally, I really think 1st of April is like continuing in the > internals mailing list... > > 2012/4/7 Tom Boutell >> >> 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 >> > -- Tom Boutell P'unk Avenue 215 755 1330 punkave.com window.punkave.com