Issue #2648562 by gapple, neclimdul: Symfony's ApcClassLoader requires APC backwards compatibility layer
parent
0dd68abecb
commit
ba8e8b2a3f
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue