diff --git a/core/install.php b/core/install.php index 5940fbebe87d7a01e4fbcc54dc8c52b53e37fc2c..b70cec53013518b5b2f465cd18a2f4cd3f28d18c 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';