diff options
author | Andrew Dolgov <[email protected]> | 2017-12-03 13:40:09 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2017-12-03 13:40:09 +0300 |
commit | 97a5e13370b0d192e532a3d837e81778b4f41c6d (patch) | |
tree | ed0f45dbc866dca8c12a045a59f12f9871b3ef93 | |
parent | 83303f20e06cfd69f5b36888be9f1cc0d7f3581a (diff) |
add sanity check for PDO
-rwxr-xr-x | include/sanity_check.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/sanity_check.php b/include/sanity_check.php index 9c089bda2..fc9c49a42 100755 --- a/include/sanity_check.php +++ b/include/sanity_check.php @@ -139,6 +139,10 @@ array_push($errors, "PHP support for PostgreSQL is required for configured DB_TYPE in config.php"); } + if (!class_exists("PDO")) { + array_push($errors, "PHP support for PDO (Portable Data Objects) is required but was not found."); + } + if (!function_exists("mb_strlen")) { array_push($errors, "PHP support for mbstring functions is required but was not found."); } |