Bug #73313 [Fbk->NoF]: over fpm does not respect in .user.ini engine off directive

From: Date: Sun, 02 Jan 2022 04:22:08 +0000
Subject: Bug #73313 [Fbk->NoF]: over fpm does not respect in .user.ini engine off directive
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-238708@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=73313&edit=1 ID: 73313 Updated by: php-bugs@lists.php.net Reported by: vladimir at helesic dot cz Summary: over fpm does not respect in .user.ini engine off directive -Status: Feedback +Status: No Feedback Type: Bug Package: FPM related Operating System: all PHP Version: Irrelevant Assigned To: bukka Private report: N New Comment: No feedback was provided. The bug is being suspended because we assume that you are no longer experiencing the problem. If this is not the case and you are able to provide the information that was requested earlier, please do so and change the status of the bug back to "Re-Opened". Thank you. Previous Comments: ------------------------------------------------------------------------ [2021-12-19 14:04:10] bukka@php.net But what should happen if there's 'engine=off'? Please note that FPM handles only FastCGI requests and it doesn't server files. For each request it uses engine and that's the only things that it can do with some exceptions like status and ping. Basically it's not a web server. That's why 'engine=off' makes sense only in Apache context that can actually do other things like serving files directly to user. It seems to me that you really need access to nginx to be able to do what you want unless I'm misunderstanding it..? ------------------------------------------------------------------------ [2021-12-19 00:11:12] pb at webjoker dot net Sorry for rambling, just saying that engine = Off seems like a neat security feature and it sucks that it does not work everywhere. OTOH, it will be bad when people assume that it works everywhere and rely on it exclusively, because even if I convinced you to add it, at least in old versions it would not work. ------------------------------------------------------------------------ [2021-12-19 00:06:36] pb at webjoker dot net "It doesn't really make any sense for FPM because it doesn't have any use without engine..." Hm, interesting. I want to create a little WordPress plugin that generates .user.ini files with memory_limit and I want to use it to add engine = Off to upload directories (e.g. contact form uploads). It is a shame that this does not (always) work, and when using nginx there is no way to do it unless I have access to the nginx configuration (not always the case). ------------------------------------------------------------------------ [2021-12-02 22:54:18] bukka@php.net This is only Apache configuration - see https://www.php.net/manual/en/apache.configuration.php#ini.engine It doesn't really make any sense for FPM because it doesn't have any use without engine... ------------------------------------------------------------------------ [2016-10-13 12:00:41] vladimir at helesic dot cz Description: ------------ Over fpm isn't way to disable php over engine Off as over mod_php(php_flag engine Off in .htaccess). When you put engine=Off to .user.ini it's silently ignored. I think thats mistake. There is no way to effectively enable / disable php engine per directory as where you use mod_php over apache. it's will be useful for all peoples. Test script: --------------- put to .user.ini line engine=Off Expected result: ---------------- where disable engine to Off in ini user file(per dir), it should not interpret php code. ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=73313&edit=1

« previous php.bugs (#238708) next »