Add check for pdo_pgsql extension
This commit is contained in:
parent
8fecda4283
commit
bac841aa78
@ -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');
|
||||
|
Loading…
Reference in New Issue
Block a user