fix(config): Avoid error messages for restricted opcache API

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>
This commit is contained in:
Josh 2024-08-28 08:20:25 -04:00 committed by backportbot[bot]
parent 88b04ba867
commit c8daa02524

View 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');