]> git.wh0rd.org - tt-rss.git/blobdiff - include/sanity_check.php
first stage of headline element handling refactoring
[tt-rss.git] / include / sanity_check.php
index 5166adee0116f2348e93fbe00141f6d43b05d8a2..8a38ec5238a552aeb282db334248213be3a69ef1 100755 (executable)
@@ -46,8 +46,8 @@
                                array_push($errors, "Please don't run this script as root.");
                        }
 
-                       if (version_compare(PHP_VERSION, '5.4.0', '<')) {
-                               array_push($errors, "PHP version 5.4.0 or newer required.");
+                       if (version_compare(PHP_VERSION, '5.6.0', '<')) {
+                               array_push($errors, "PHP version 5.6.0 or newer required. You're using " . PHP_VERSION . ".");
                        }
 
                        if (CONFIG_VERSION != EXPECTED_CONFIG_VERSION) {
@@ -75,7 +75,7 @@
                                        "Configuration option checker sanity_config.php is outdated, please recreate it using ./utils/regen_config_checks.sh");
                        }
 
-                       foreach ($requred_defines as $d) {
+                       foreach ($required_defines as $d) {
                                if (!defined($d)) {
                                        array_push($errors,
                                                "Required configuration file parameter $d is not defined in config.php. You might need to copy it from config.php-dist.");