]> git.wh0rd.org - tt-rss.git/commitdiff
add sanity check for PDO
authorAndrew Dolgov <noreply@fakecake.org>
Sun, 3 Dec 2017 10:40:09 +0000 (13:40 +0300)
committerAndrew Dolgov <noreply@fakecake.org>
Sun, 3 Dec 2017 10:40:09 +0000 (13:40 +0300)
include/sanity_check.php

index 9c089bda2e728b290df80a0413d074bac657dadf..fc9c49a429952b0dc0ab546c937e40576971500c 100755 (executable)
                                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.");
                        }