File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
lib/Doctrine/Common/Annotations Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -154,12 +154,20 @@ static public function addGlobalIgnoredName($name)
154
154
*/
155
155
public function __construct ()
156
156
{
157
+ if (extension_loaded ('Zend Optimizer+ ' ) && (ini_get ('zend_optimizerplus.save_comments ' ) === "0 " || ini_get ('opcache.save_comments ' ) === "0 " )) {
158
+ throw AnnotationException::optimizerPlusSaveComments ();
159
+ }
160
+
161
+ if (extension_loaded ('Zend OPcache ' ) && ini_get ('opcache.save_comments ' ) == 0 ) {
162
+ throw AnnotationException::optimizerPlusSaveComments ();
163
+ }
164
+
157
165
if (PHP_VERSION_ID < 70000 ) {
158
166
if (extension_loaded ('Zend Optimizer+ ' ) && (ini_get ('zend_optimizerplus.load_comments ' ) === "0 " || ini_get ('opcache.load_comments ' ) === "0 " )) {
159
167
throw AnnotationException::optimizerPlusLoadComments ();
160
168
}
161
169
162
- if (extension_loaded ('Zend OPcache ' ) && ini_get ('opcache.load_comments ' ) === " 0 " ) {
170
+ if (extension_loaded ('Zend OPcache ' ) && ini_get ('opcache.load_comments ' ) == 0 ) {
163
171
throw AnnotationException::optimizerPlusLoadComments ();
164
172
}
165
173
}
You can’t perform that action at this time.
0 commit comments