Add check for pdo_pgsql extension

This commit is contained in:
Frederic Guillot 2017-01-02 17:32:13 -05:00
parent 8fecda4283
commit bac841aa78

View File

@ -32,11 +32,14 @@ if (! function_exists('dom_import_simplexml')) {
die('PHP extension required: DOM');
}
// Check PDO Sqlite
if (! extension_loaded('pdo_sqlite')) {
if (DB_DRIVER === 'sqlite' && ! extension_loaded('pdo_sqlite')) {
die('PHP extension required: pdo_sqlite');
}
if (DB_DRIVER === 'postgres' && ! extension_loaded('pdo_pgsql')) {
die('PHP extension required: pdo_pgsql');
}
// Check extension: mbstring (simpleValidator)
if (! extension_loaded('mbstring')) {
die('PHP extension required: mbstring');