[php-src] Issue #9722: FPM is maliciously compliant when asked to set opcache.preload

From: Date: Tue, 11 Oct 2022 12:51:43 +0000
Subject: [php-src] Issue #9722: FPM is maliciously compliant when asked to set opcache.preload
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-242577@lists.php.net to get a copy of this message
Issue: https://github.com/php/php-src/issues/9722 Author: greg0ire ### Description The following FPM configuration: ``` php_value[opcache.preload] = /app/config/preload.php php_value[opcache.preload_user] = app ``` results in phpinfo() advertising that config. Yet when calling opcache_get_status(), there is no preloading_statistics, and there is no performance improvement in the application. I asked about this [here](https://symfony-devs.slack.com/archives/C6PSS2YKW/p1665491558093879), and was told that's because it is too late: when setting that config value, FPM has already started. If that's the case, I would expect an exception to be thrown, because I can think of a reason to allow editing that setting past a certain point ### PHP Version 8.1.7 ### Operating System Linux

« previous php.bugs (#242577) next »