Add check for gd extension

This commit is contained in:
Frederic Guillot 2015-12-05 20:33:30 -05:00
parent e9fedf3e5c
commit bd313f9426
1 changed files with 7 additions and 2 deletions

View File

@ -21,12 +21,17 @@ if (version_compare(PHP_VERSION, '5.4.0', '<')) {
// Check extension: PDO
if (! extension_loaded('pdo_sqlite') && ! extension_loaded('pdo_mysql') && ! extension_loaded('pdo_pgsql')) {
throw new Exception('PHP extension required: pdo_sqlite or pdo_mysql or pdo_pgsql');
throw new Exception('PHP extension required: "pdo_sqlite" or "pdo_mysql" or "pdo_pgsql"');
}
// Check extension: mbstring
if (! extension_loaded('mbstring')) {
throw new Exception('PHP extension required: mbstring');
throw new Exception('PHP extension required: "mbstring"');
}
// Check extension: gd
if (! extension_loaded('gd')) {
throw new Exception('PHP extension required: "gd"');
}
// Fix wrong value for arg_separator.output, used by the function http_build_query()