From e43c26dce737082ad8fe443422e4e3d82ed47ff6 Mon Sep 17 00:00:00 2001 From: quietone <quietone@2572884.no-reply.drupal.org> Date: Fri, 4 Oct 2024 17:47:03 +1300 Subject: [PATCH] Issue #3478132 by pere orga, smustgrave, cilefen: Fix case in comment (OPcache) --- core/install.php | 2 +- core/lib/Drupal/Component/Utility/OpCodeCache.php | 2 +- core/lib/Drupal/Core/DrupalKernel.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/core/install.php b/core/install.php index e123db239734..6e5ddffb1e87 100644 --- a/core/install.php +++ b/core/install.php @@ -37,7 +37,7 @@ // Initialize the autoloader. $class_loader = require_once $root_path . '/autoload.php'; -// If OPCache is in use, ensure opcache.save_comments is enabled. +// If OPcache is in use, ensure opcache.save_comments is enabled. if (OpCodeCache::isEnabled() && !ini_get('opcache.save_comments')) { print 'Systems with OPcache installed must have <a href="http://php.net/manual/opcache.configuration.php#ini.opcache.save-comments">opcache.save_comments</a> enabled.'; exit(); diff --git a/core/lib/Drupal/Component/Utility/OpCodeCache.php b/core/lib/Drupal/Component/Utility/OpCodeCache.php index efce6f2b00d6..e9c8c9807a9d 100644 --- a/core/lib/Drupal/Component/Utility/OpCodeCache.php +++ b/core/lib/Drupal/Component/Utility/OpCodeCache.php @@ -13,7 +13,7 @@ class OpCodeCache { * Checks if OpCodeCache is enabled. * * @return bool - * TRUE if opcache is enabled, FALSE otherwise. + * TRUE if OPcache is enabled, FALSE otherwise. */ public static function isEnabled() { return extension_loaded('Zend OPcache') && ini_get('opcache.enable'); diff --git a/core/lib/Drupal/Core/DrupalKernel.php b/core/lib/Drupal/Core/DrupalKernel.php index 2d9b63dfd790..970f5f424c8c 100644 --- a/core/lib/Drupal/Core/DrupalKernel.php +++ b/core/lib/Drupal/Core/DrupalKernel.php @@ -1026,7 +1026,7 @@ public static function bootEnvironment($app_root = NULL) { ini_set('log_errors', 1); ini_set('error_log', $app_root . '/' . $test_db->getTestSitePath() . '/error.log'); - // Ensure that a rewritten settings.php is used if opcache is on. + // Ensure that a rewritten settings.php is used if OPcache is on. ini_set('opcache.validate_timestamps', 'on'); ini_set('opcache.revalidate_freq', 0); } -- GitLab