From: Andrew Dolgov Date: Sun, 3 Dec 2017 10:40:09 +0000 (+0300) Subject: add sanity check for PDO X-Git-Tag: 18.8~151 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=97a5e13370b0d192e532a3d837e81778b4f41c6d;p=tt-rss.git add sanity check for PDO --- 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."); }