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 b678e139be
commit e25ead690c

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