From: Andrew Dolgov Date: Thu, 14 Mar 2013 15:16:01 +0000 (+0400) Subject: add a separate check for php version because of T_PAAMAYIM_NEKUDOTAYIM on 5.2 X-Git-Tag: 1.7.3~9 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=d2ef966e8d015d5f4a2aee2d9cdd7d17364e3987;p=tt-rss.git add a separate check for php version because of T_PAAMAYIM_NEKUDOTAYIM on 5.2 --- diff --git a/index.php b/index.php index 70ded367..fa868318 100644 --- a/index.php +++ b/index.php @@ -5,6 +5,13 @@ exit; } + // we need a separate check here because functions.php might get parsed + // incorrectly before 5.3 because of :: syntax. + if (version_compare("5.3.0", phpversion()) == 1) { + print "Fatal Error: PHP version 5.3.0 or newer required.\n"; + exit; + } + set_include_path(dirname(__FILE__) ."/include" . PATH_SEPARATOR . get_include_path());