From 71a15febbfbe2600e15efd0705435575837a084c Mon Sep 17 00:00:00 2001 From: Alex Pott Date: Tue, 8 Dec 2015 13:56:49 +0000 Subject: [PATCH] Issue #2421451 by cilefen, dawehner: Drupal needs comments in opcache --- core/install.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/core/install.php b/core/install.php index 5940fbebe87..b70cec53013 100644 --- a/core/install.php +++ b/core/install.php @@ -26,6 +26,11 @@ if (version_compare(PHP_VERSION, '5.5.9') < 0) { exit; } +if (function_exists('opcache_get_status') && opcache_get_status()['opcache_enabled'] && !ini_get('opcache.save_comments')) { + print 'Systems with OPcache installed must have opcache.save_comments enabled.'; + exit(); +} + // Start the installer. $class_loader = require_once 'autoload.php'; require_once __DIR__ . '/includes/install.core.inc';