Skip to content

Commit

Permalink
Merge pull request #38857 from joshtrichards/jr-earlier-check-for-php…
Browse files Browse the repository at this point in the history
…-xml
  • Loading branch information
skjnldsv authored Aug 16, 2024
2 parents b8dbed3 + 8032b6a commit b8b8125
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lib/base.php
Original file line number Diff line number Diff line change
Expand Up @@ -652,6 +652,13 @@ public static function init(): void {
$bootstrapCoordinator->runInitialRegistration();

$eventLogger->start('init_session', 'Initialize session');

// Check for PHP SimpleXML extension earlier since we need it before our other checks and want to provide a useful hint for web users
// see https://github.com/nextcloud/server/pull/2619
if (!function_exists('simplexml_load_file')) {
throw new \OCP\HintException('The PHP SimpleXML/PHP-XML extension is not installed.', 'Install the extension or make sure it is enabled.');
}

OC_App::loadApps(['session']);
if (!self::$CLI) {
self::initSession();
Expand Down

0 comments on commit b8b8125

Please sign in to comment.