]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix(config): Avoid error messages for restricted opcache API 47621/head
authorJosh <josh.t.richards@gmail.com>
Wed, 28 Aug 2024 12:20:25 +0000 (08:20 -0400)
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>
Fri, 30 Aug 2024 07:53:04 +0000 (07:53 +0000)
Make changes recently added via #44230 match #8188 to avoid failures in restricted hosting environments.

Fixes #47562

Signed-off-by: Josh <josh.t.richards@gmail.com>
lib/private/Config.php

index ee30b8efc5ed30233636adf79b3ab97362c50b53..d37c5c389951ae960c95878c6f962492cdf49371 100644 (file)
@@ -184,7 +184,7 @@ class Config {
 
                        // Invalidate opcache (only if the timestamp changed)
                        if (function_exists('opcache_invalidate')) {
-                               opcache_invalidate($file, false);
+                               @opcache_invalidate($file, false);
                        }
 
                        $filePointer = @fopen($file, 'r');