]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix(config): Avoid error messages for restricted opcache API 47624/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:55:55 +0000 (07:55 +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 f01b30d226a332c459d8a835dec070cfd0bac327..278c6816e70ea5b9d6e183890c460754b7d2ccb4 100644 (file)
@@ -215,7 +215,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');