Issue #2421451 by cilefen, dawehner: Drupal needs comments in opcache

8.1.x
Alex Pott 2015-12-08 13:56:49 +00:00
parent af11320d2f
commit 71a15febbf
1 changed files with 5 additions and 0 deletions

View File

@ -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 <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';