Issue #2648562 by gapple, neclimdul: Symfony's ApcClassLoader requires APC backwards compatibility layer

8.2.x
Nathaniel Catchpole 2016-05-04 13:55:26 +01:00
parent 0dd68abecb
commit ba8e8b2a3f
1 changed files with 1 additions and 3 deletions

View File

@ -974,11 +974,9 @@ class DrupalKernel implements DrupalKernelInterface, TerminableInterface {
// If the class loader is still the same, possibly upgrade to the APC class
// loader.
// ApcClassLoader does not support APCu without backwards compatibility
// enabled.
if ($class_loader_class == get_class($this->classLoader)
&& Settings::get('class_loader_auto_detect', TRUE)
&& extension_loaded('apc')) {
&& function_exists('apcu_fetch')) {
$prefix = Settings::getApcuPrefix('class_loader', $this->root);
$apc_loader = new ApcClassLoader($prefix, $this->classLoader);
$this->classLoader->unregister();