diff --git a/lib/private/Config.php b/lib/private/Config.php index b044d0731a385..37708357339c1 100644 --- a/lib/private/Config.php +++ b/lib/private/Config.php @@ -231,6 +231,14 @@ private function readData() { unset($CONFIG); include $file; + if (!defined('PHPUNIT_RUN') && headers_sent()) { + // syntax issues in the config file like leading spaces causing PHP to send output + $errorMessage = sprintf('Config file has leading content, please remove everything before "cache = array_merge($this->cache, $CONFIG); }