Do not crash if an extension cannot be loaded.

Former-commit-id: f303be21ceabe052545e53e1a4b6bcd08a4526c2
This commit is contained in:
Ramon Novoa 2019-03-26 11:46:50 +01:00
parent 90a2e28247
commit c1536b7978
1 changed files with 8 additions and 0 deletions

View File

@ -380,7 +380,15 @@ function extensions_load_extensions($process_login)
// ~ }
// ~ }
// ~ else {
try {
include_once $path_extension;
}
// PHP 7
catch (Throwable $e) {
}
// PHP 5
catch (Exception $e) {
}
// ~ }
}
}