Browse Source

add sanity check for PDO

Andrew Dolgov 6 years ago
parent
commit
97a5e13370
1 changed files with 4 additions and 0 deletions
  1. 4 0
      include/sanity_check.php

+ 4 - 0
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.");
 			}