Community Documentation

eAccelerator conflict with PHP Annotations

Last updated November 17, 2012. Created by Zahor on November 17, 2012.
Log in to edit this page.

As of this writing there exists a conflict with eAccelerator's default functionality and some core code in Drupal. Specifically, as part of its optimization process, eAccelerator removes comments & Annotations from PHP code. This presents a problem in Drupal because Doctrine, a library Drupal 8 uses relies on Annotations to work. This will cause a fatal error something to the effect of: [Semantical Error] The class "Drupal\Core\Annotation\Plugin" is not annotated with @Annotation.

There are 2 options to address this problem:

  1. Disable eAccelerator and use either XCache or APC
  2. Recompile eAccelerator with flag --with-eaccelerator-doc-comment-inclusion

Page status

Needs technical review

Log in to edit this page

About this page

Drupal version
Drupal 8.x
Audience
Contributors, Programmers, Site builders
Level
Intermediate

Reference

Drupal’s online documentation is © 2000-2013 by the individual contributors and can be used in accordance with the Creative Commons License, Attribution-ShareAlike 2.0. PHP code is distributed under the GNU General Public License. Comments on documentation pages are used to improve content and then deleted.
nobody click here