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.'"');
}
}

View File

@ -15,6 +15,9 @@
},
"require" : {
"php" : ">=5.3.9",
"ext-simplexml" : "*",
"ext-dom" : "*",
"ext-xml" : "*",
"ext-gd" : "*",
"ext-mbstring" : "*",
"ext-hash" : "*",

View File

@ -75,6 +75,10 @@ Kanboard is pre-configured to work with Apache (URL rewriting).
| hash | |
| ctype | |
| session | |
| filter | |
| xml | |
| SimpleXML | |
| dom | |
| ldap | Only for LDAP authentication |
| Zend OPcache | Recommended |