On Thu, Nov 19, 2026, at 18:52, Gregory Magarshak wrote:
> 1) Make it so that include() and require() can only load specific extensions 
> like ".php" and ".phar"
> 2) At the same time, all file functions that write to a file (e.g. fwrite and 
> file_put_contents) must refuse to write to exactly these extensions.

Not a very good idea, since this would break almost all template engines, like 
Twig, Blade, etc. They depend on compiling templates to php code for speed. 

Grtz, Casper

Reply via email to