You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Jira issue originally created by user mabe.berlin:
We have disabled the comments by opcache for performance reasons and because of this also disables annotations to work we also disabled this in development environment as out application doesn't need to read annotations at all.
Anyway if we are running PHP from command line opcache is disabled by opcache.enable_cli=0 - therefor reading doc comments works but "Doctrine/Common/Annotations/AnnotationReader.php" throws an exception because it wrongly detects opcache with disabled comments.
-> if we want to run phpdoc for example we get an error and need to manually enable comments in opcache disable afterwards :(
From @doctrinebot on October 9, 2015 6:21
Jira issue originally created by user mabe.berlin:
We have disabled the comments by opcache for performance reasons and because of this also disables annotations to work we also disabled this in development environment as out application doesn't need to read annotations at all.
Anyway if we are running PHP from command line opcache is disabled by
opcache.enable_cli=0
- therefor reading doc comments works but "Doctrine/Common/Annotations/AnnotationReader.php" throws an exception because it wrongly detects opcache with disabled comments.-> if we want to run phpdoc for example we get an error and need to manually enable comments in opcache disable afterwards :(
The current code looks as follows:
and should be changed to (not tested):
Copied from original issue: doctrine/common#616
The text was updated successfully, but these errors were encountered: