summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArno Welzel <github@arnowelzel.de>2018-02-05 19:45:06 +0100
committerArno Welzel <github@arnowelzel.de>2018-02-05 19:45:06 +0100
commite7c35d720de5a3998ca4ff36e4876c0b9fbc9fb0 (patch)
treeaa07a75ddbec1605fe73bd4786f3d05d8455fb25
parent847bd0cf74ce183e03accf1603a1f8e5d25394b6 (diff)
downloadnextcloud-server-e7c35d720de5a3998ca4ff36e4876c0b9fbc9fb0.tar.gz
nextcloud-server-e7c35d720de5a3998ca4ff36e4876c0b9fbc9fb0.zip
Avoid error messages for restricted opcache API
-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 7e083b2ba0e..15f7b2927f3 100644
--- a/lib/private/legacy/util.php
+++ b/lib/private/legacy/util.php
@@ -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();
}
}