mirror of
https://github.com/nextcloud/server.git
synced 2026-06-11 01:30:50 -04:00
Merge pull request #38857 from joshtrichards/jr-earlier-check-for-php-xml
This commit is contained in:
commit
b8b81254f3
1 changed files with 7 additions and 0 deletions
|
|
@ -652,6 +652,13 @@ class OC {
|
|||
$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();
|
||||
|
|
|
|||
Loading…
Reference in a new issue