[php-src] PR #19146: opcache: Disallow changing `opcache.memory_consumption` when SHM is set up
| From: | TimWolla | Date: | Wed, 16 Jul 2025 08:12:23 +0000 |
| Subject: | [php-src] PR #19146: opcache: Disallow changing `opcache.memory_consumption` when SHM is set up | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-32467@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/19146
Author: TimWolla
Normally changing the INI value is not possible after SHM is set up, since it is
PHP_INI_SYSTEM. FPM is a notable exception: SHM is set up in the master process, but
when spawning the individual pools, the php_admin_value config option can be used to
change PHP_INI_SYSTEM INIs on a per-pool basis. This does not work for this option,
since it will only be read on early start, leading to misleading PHPInfo output, since the INI value
appears to be successfully set and since some of the calculated values are derived from the INI
value rather than the actual value.