From ce51cecb445f22a7689a7ad6fadd619ae22b9883 Mon Sep 17 00:00:00 2001 From: Josh Date: Fri, 27 Sep 2024 17:28:14 -0400 Subject: [PATCH] fix(config): Suppress error at install time Signed-off-by: Josh --- lib/private/Config.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/private/Config.php b/lib/private/Config.php index d9b1683269870..0e8d07955af06 100644 --- a/lib/private/Config.php +++ b/lib/private/Config.php @@ -186,7 +186,8 @@ private function readData() { @opcache_invalidate($file, false); } - $filePointer = @fopen($file, 'r'); + // suppressor doesn't work here at boot time since it'll go via our onError custom error handler + $filePointer = file_exists($file) ? @fopen($file, 'r') : false; if ($filePointer === false) { // e.g. wrong permissions are set if ($file === $this->configFilePath) {