summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2017-12-03 13:40:09 +0300
committerAndrew Dolgov <[email protected]>2017-12-03 13:40:09 +0300
commit97a5e13370b0d192e532a3d837e81778b4f41c6d (patch)
treeed0f45dbc866dca8c12a045a59f12f9871b3ef93 /include
parent83303f20e06cfd69f5b36888be9f1cc0d7f3581a (diff)
add sanity check for PDO
Diffstat (limited to 'include')
-rwxr-xr-xinclude/sanity_check.php4
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.");
}