From eeca1aec0915572ec170ab39792862ccc24c7043 Mon Sep 17 00:00:00 2001 From: Alex Pott <alex.a.pott@googlemail.com> Date: Sat, 27 Jul 2024 09:43:50 +0100 Subject: [PATCH] Issue #3142928 by ivnish, neclimdul, Wiktor7, mitrpaka, Chi, keha3912, smustgrave, andypost, catch: Status report wrongly warns of APCu memory limit when admin language is not English (cherry picked from commit 37d8ea5cb47b49d0201fe771ffe18ddc65ecf8d7) --- core/modules/system/system.install | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/modules/system/system.install b/core/modules/system/system.install index 1a9154e6fb28..eb4b7fc1f3b5 100644 --- a/core/modules/system/system.install +++ b/core/modules/system/system.install @@ -419,7 +419,7 @@ function system_requirements($phase) { $apcu_actual_size = ByteSizeMarkup::create($memory_info['seg_size']); $apcu_recommended_size = '32 MB'; $requirements['php_apcu_enabled']['value'] = t('Enabled (@size)', ['@size' => $apcu_actual_size]); - if (Bytes::toNumber($apcu_actual_size) < Bytes::toNumber($apcu_recommended_size)) { + if ($memory_info['seg_size'] < Bytes::toNumber($apcu_recommended_size)) { $requirements['php_apcu_enabled']['severity'] = REQUIREMENT_WARNING; $requirements['php_apcu_enabled']['description'] = t('Depending on your configuration, Drupal can run with a @apcu_size APCu limit. However, a @apcu_default_size APCu limit (the default) or above is recommended, especially if your site uses additional custom or contributed modules.', [ '@apcu_size' => $apcu_actual_size, -- GitLab