]> git.wh0rd.org Git - tt-rss.git/commitdiff
add a separate check for php version because of T_PAAMAYIM_NEKUDOTAYIM on 5.2
authorAndrew Dolgov <fox@fakecake.org>
Thu, 14 Mar 2013 15:16:01 +0000 (19:16 +0400)
committerAndrew Dolgov <fox@fakecake.org>
Thu, 14 Mar 2013 15:16:01 +0000 (19:16 +0400)
index.php

index 70ded3670f9e06ad69fd100505890db11e5b2544..fa868318ab83ef14b13aaaaa59b6e5a08ed68e7c 100644 (file)
--- 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 "<b>Fatal Error</b>: PHP version 5.3.0 or newer required.\n";
+               exit;
+       }
+
        set_include_path(dirname(__FILE__) ."/include" . PATH_SEPARATOR .
                get_include_path());