diff --git a/core/modules/system/system.install b/core/modules/system/system.install index 28e057cacc1de11e515733084d9f63f09831b096..14cecf343413f822bc2869ecd678bb873c64964e 100644 --- a/core/modules/system/system.install +++ b/core/modules/system/system.install @@ -411,7 +411,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,