Avoid error messages for restricted opcache API

This commit is contained in:
Arno Welzel 2018-02-05 19:45:06 +01:00
parent 847bd0cf74
commit e7c35d720d

View file

@ -1374,7 +1374,7 @@ class OC_Util {
}
// Zend OpCache >= 7.0.0, PHP >= 5.5.0
if (function_exists('opcache_invalidate')) {
$ret = opcache_invalidate($path);
$ret = @opcache_invalidate($path);
}
}
return $ret;
@ -1408,7 +1408,7 @@ class OC_Util {
}
// Opcache (PHP >= 5.5)
if (function_exists('opcache_reset')) {
opcache_reset();
@opcache_reset();
}
}