From 97a5e13370b0d192e532a3d837e81778b4f41c6d Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sun, 3 Dec 2017 13:40:09 +0300 Subject: [PATCH] add sanity check for PDO --- include/sanity_check.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/sanity_check.php b/include/sanity_check.php index 9c089bda..fc9c49a4 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."); }