Commit 4384e7d6eab for php.net
commit 4384e7d6eab2b1553675fdcb2c98587b90ba11a2
Merge: fb604aab1d5 9eb30eeb16c
Author: David Carlier <devnexen@gmail.com>
Date: Thu Aug 20 22:27:15 2026 +0100
Merge branch 'PHP-8.5'
* PHP-8.5:
ext/opcache: opcache.interned_strings_buffer per FPM pool crashed on restart.
diff --cc ext/opcache/zend_accelerator_module.c
index 465b15cd957,316db5bb7cb..a513627414a
--- a/ext/opcache/zend_accelerator_module.c
+++ b/ext/opcache/zend_accelerator_module.c
@@@ -102,7 -105,16 +102,16 @@@ static ZEND_INI_MH(OnUpdateMemoryConsum
static ZEND_INI_MH(OnUpdateInternedStringsBuffer)
{
+ if (accel_startup_ok) {
+ if (strcmp(sapi_module.name, "fpm-fcgi") == 0) {
+ zend_accel_error(ACCEL_LOG_WARNING, "opcache.interned_strings_buffer cannot be changed when OPcache is already set up. Are you using php_admin_value[opcache.interned_strings_buffer] in an individual pool's configuration?\n");
+ } else {
+ zend_accel_error(ACCEL_LOG_WARNING, "opcache.interned_strings_buffer cannot be changed when OPcache is already set up.\n");
+ }
+ return FAILURE;
+ }
+
- zend_long *p = (zend_long *) ZEND_INI_GET_ADDR();
+ zend_long *p = ZEND_INI_GET_ADDR();
zend_long size = zend_ini_parse_quantity_warn(new_value, entry->name);
if (size < 0) {