Merge pull request #8188 from arnowelzel/master
Avoid error messages for restricted opcache API
This commit is contained in:
commit
e0d9c43c95
1 changed files with 2 additions and 2 deletions
|
@ -1378,7 +1378,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;
|
||||
|
@ -1412,7 +1412,7 @@ class OC_Util {
|
|||
}
|
||||
// Opcache (PHP >= 5.5)
|
||||
if (function_exists('opcache_reset')) {
|
||||
opcache_reset();
|
||||
@opcache_reset();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue