Re: [Pre-RFC] Pure-code source files via .phpc extension
| From: | Bruce Weirdan | Date: | Thu, 28 May 2026 16:14:20 +0000 |
| Subject: | Re: [Pre-RFC] Pure-code source files via .phpc extension | ||
| References: | 1 2 3 4 5 6 7 8 9 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-131038@lists.php.net to get a copy of this message | ||
> > * All SAPIs will consider a "normal PHP file" as default input, could
> > it be CLI, mod_php for Apache, or anything else (even FrankenPHP)
>
> Agreed, and nothing in the proposal changes that. Existing .php files behave exactly as today
> through every SAPI. The proposal is additive: a new file type that the engine handles differently,
> with zero impact on the existing default path.
This is not entirely true, as the handling of
*phpc (or whatever
extension you are going to choose) _will_ change. People could already
be using files with that extension. The BC impact is non-zero, though
problems are arguably unlikely.