Merge pull request #8188 from arnowelzel/master

Avoid error messages for restricted opcache API
This commit is contained in:
Morris Jobke 2018-07-20 11:48:44 +02:00 committed by GitHub
commit e0d9c43c95
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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();
}
}