[php-src] master: Merge branch 'PHP-8.6'

From: Date: Tue, 03 Nov 2026 21:04:04 +0000
Subject: [php-src] master: Merge branch 'PHP-8.6'
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-143296@lists.php.net to get a copy of this message
Author: ndossche (ndossche) Date: 2026-11-03T22:03:43+01:00 Commit: https://github.com/php/php-src/commit/5cc43af14725937962ea14ed2f82f86cb5c1c58a Raw diff: https://github.com/php/php-src/commit/5cc43af14725937962ea14ed2f82f86cb5c1c58a.diff Merge branch 'PHP-8.6' * PHP-8.6: Fixed GH-22216: don't warn in OnUpdateMemoryConsumption on ZTS thread init Changed paths: M ext/opcache/zend_accelerator_module.c Diff: diff --git a/ext/opcache/zend_accelerator_module.c b/ext/opcache/zend_accelerator_module.c index 5aff69886c1b..5ff9fef9c807 100644 --- a/ext/opcache/zend_accelerator_module.c +++ b/ext/opcache/zend_accelerator_module.c @@ -76,7 +76,9 @@ static bool validate_api_restriction(void) static ZEND_INI_MH(OnUpdateMemoryConsumption) { - if (accel_startup_ok) { + /* On ZTS, each new thread runs the on_modify handlers at STAGE_STARTUP to + * populate its own globals; that is thread init, not a post-startup change. */ + if (accel_startup_ok && stage != ZEND_INI_STAGE_STARTUP) { if (strcmp(sapi_module.name, "fpm-fcgi") == 0) { zend_accel_error(ACCEL_LOG_WARNING, "opcache.memory_consumption cannot be changed when OPcache is already set up. Are you using php_admin_value[opcache.memory_consumption] in an individual pool's configuration?\n"); } else {

« previous php.cvs (#143296) next »