diff --git a/core/modules/system/system.install b/core/modules/system/system.install index c716891..8039640 100644 --- a/core/modules/system/system.install +++ b/core/modules/system/system.install @@ -795,20 +795,21 @@ function system_requirements($phase) { 'description' => t('The trusted_host_patterns setting is set to allow %trusted_host_patterns', array('%trusted_host_patterns' => join(', ', $trusted_host_patterns))), ); } } - // Check if the Twig C extension is available. - if ($phase == 'runtime') { + // Check if the Twig C extension is available, but not on PHP 7.0 as a version + // of the extension does not exist. + if ($phase == 'runtime' && (version_compare($phpversion, '7.0.0') < 0)) { $url = 'http://twig.sensiolabs.org/doc/installation.html#installing-the-c-extension'; $requirements['twig_c_extension'] = [ 'title' => t('Twig C extension'), 'severity' => REQUIREMENT_INFO, ]; if (!function_exists('twig_template_get_attributes')) { $requirements['twig_c_extension']['value'] = t('Not available'); - $requirements['twig_c_extension']['description'] = t('Enabling the Twig C extension can greatly increase rendering performance. See the installation instructions for more detail.', [':url' => $url]); + $requirements['twig_c_extension']['description'] = t('Enabling the Twig C extension can increase rendering performance. See the installation instructions for more detail.', [':url' => $url]); } else { $requirements['twig_c_extension']['description'] = t('The Twig C extension is available', [':url' => $url]); } }