Add missing checks for requirements

This commit is contained in:
Frédéric Guillot
2017-11-29 10:40:29 -08:00
parent 6d2076e859
commit f6b1ac8358
3 changed files with 9 additions and 2 deletions

View File

@@ -33,9 +33,9 @@ if (DB_DRIVER === 'postgres' && ! extension_loaded('pdo_pgsql')) {
}
// Check other extensions
foreach (array('gd', 'mbstring', 'hash', 'openssl', 'json', 'hash', 'ctype', 'filter', 'session') as $ext) {
foreach (array('gd', 'mbstring', 'hash', 'openssl', 'json', 'hash', 'ctype', 'filter', 'session', 'dom', 'filter', 'SimpleXML', 'xml') as $ext) {
if (! extension_loaded($ext)) {
throw new Exception('PHP extension required: "'.$ext.'"');
throw new Exception('This PHP extension is required: "'.$ext.'"');
}
}