Skip to content
Snippets Groups Projects
Verified Commit eeca1aec authored by Alex Pott's avatar Alex Pott
Browse files

Issue #3142928 by ivnish, neclimdul, Wiktor7, mitrpaka, Chi, keha3912,...

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 37d8ea5c)
parent 196137ea
No related branches found
No related tags found
2 merge requests!11185Issue #3477324 by andypost, alexpott: Fix usage of str_getcsv() and fgetcsv() for PHP 8.4,!9944Issue #3483353: Consider making the createCopy config action optionally fail...
Pipeline #235939 canceled
Pipeline: drupal

#235941

    ...@@ -419,7 +419,7 @@ function system_requirements($phase) { ...@@ -419,7 +419,7 @@ function system_requirements($phase) {
    $apcu_actual_size = ByteSizeMarkup::create($memory_info['seg_size']); $apcu_actual_size = ByteSizeMarkup::create($memory_info['seg_size']);
    $apcu_recommended_size = '32 MB'; $apcu_recommended_size = '32 MB';
    $requirements['php_apcu_enabled']['value'] = t('Enabled (@size)', ['@size' => $apcu_actual_size]); $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']['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.', [ $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, '@apcu_size' => $apcu_actual_size,
    ......
    0% Loading or .
    You are about to add 0 people to the discussion. Proceed with caution.
    Finish editing this message first!
    Please register or to comment