File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed
lib/Doctrine/Common/Annotations Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -162,13 +162,14 @@ public function __construct()
162
162
throw AnnotationException::optimizerPlusSaveComments ();
163
163
}
164
164
165
+ if (PHP_VERSION < 70000 ) {
166
+ if (extension_loaded ('Zend Optimizer+ ' ) && (ini_get ('zend_optimizerplus.load_comments ' ) === "0 " || ini_get ('opcache.load_comments ' ) === "0 " )) {
167
+ throw AnnotationException::optimizerPlusLoadComments ();
168
+ }
165
169
166
- if (extension_loaded ('Zend Optimizer+ ' ) && (ini_get ('zend_optimizerplus.load_comments ' ) === "0 " || ini_get ('opcache.load_comments ' ) === "0 " )) {
167
- throw AnnotationException::optimizerPlusLoadComments ();
168
- }
169
-
170
- if (extension_loaded ('Zend OPcache ' ) && ini_get ('opcache.load_comments ' ) == 0 ) {
171
- throw AnnotationException::optimizerPlusLoadComments ();
170
+ if (extension_loaded ('Zend OPcache ' ) && ini_get ('opcache.load_comments ' ) == 0 ) {
171
+ throw AnnotationException::optimizerPlusLoadComments ();
172
+ }
172
173
}
173
174
174
175
AnnotationRegistry::registerFile (__DIR__ . '/Annotation/IgnoreAnnotation.php ' );
You can’t perform that action at this time.
0 commit comments