From: Andrew Dolgov Date: Thu, 23 Aug 2012 19:17:32 +0000 (+0400) Subject: sanity: add php version check X-Git-Tag: 1.6.0~113 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=79f946be6f6f7451269bf4b0d6ff7a449da63937;p=tt-rss.git sanity: add php version check --- diff --git a/include/sanity_check.php b/include/sanity_check.php index 80ca7822..5e34b2f3 100644 --- a/include/sanity_check.php +++ b/include/sanity_check.php @@ -13,6 +13,10 @@ array_push($errors, "Please don't run this script as root."); } + if (version_compare("5.2.0", phpversion()) == 1) { + array_push($errors, "PHP version 5.2.0 or newer required."); + } + if (CONFIG_VERSION != EXPECTED_CONFIG_VERSION) { array_push($errors, "Configuration file (config.php) has incorrect version. Update it with new options from config.php-dist and set CONFIG_VERSION to the correct value."); }