From 71a15febbfbe2600e15efd0705435575837a084c Mon Sep 17 00:00:00 2001
From: Alex Pott <alex.a.pott@googlemail.com>
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 5940fbebe87d..b70cec530135 100644
--- a/core/install.php
+++ b/core/install.php
@@ -26,6 +26,11 @@
   exit;
 }
 
+if (function_exists('opcache_get_status') && opcache_get_status()['opcache_enabled'] && !ini_get('opcache.save_comments')) {
+  print 'Systems with OPcache installed must have <a href="http://php.net/manual/en/opcache.configuration.php#ini.opcache.save-comments">opcache.save_comments</a> enabled.';
+  exit();
+}
+
 // Start the installer.
 $class_loader = require_once 'autoload.php';
 require_once __DIR__ . '/includes/install.core.inc';
-- 
GitLab