summaryrefslogtreecommitdiffstats
path: root/lib/private/legacy
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2018-07-20 11:48:44 +0200
committerGitHub <noreply@github.com>2018-07-20 11:48:44 +0200
commite0d9c43c958a1473e287b89e140830fb76f91bed (patch)
treeb8e4a8c0ce639ddb9029ff5833a2beca2a91855c /lib/private/legacy
parentc6b0df6710098bf20e34ed78b4d325205812ed47 (diff)
parente7c35d720de5a3998ca4ff36e4876c0b9fbc9fb0 (diff)
downloadnextcloud-server-e0d9c43c958a1473e287b89e140830fb76f91bed.tar.gz
nextcloud-server-e0d9c43c958a1473e287b89e140830fb76f91bed.zip
Merge pull request #8188 from arnowelzel/master
Avoid error messages for restricted opcache API
Diffstat (limited to 'lib/private/legacy')
-rw-r--r--lib/private/legacy/util.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/legacy/util.php b/lib/private/legacy/util.php
index 5e9a46d44a9..b285eb382e7 100644
--- a/lib/private/legacy/util.php
+++ b/lib/private/legacy/util.php
@@ -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();
}
}