summaryrefslogtreecommitdiff
path: root/index.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2013-03-14 19:16:01 +0400
committerAndrew Dolgov <[email protected]>2013-03-14 19:16:01 +0400
commitd2ef966e8d015d5f4a2aee2d9cdd7d17364e3987 (patch)
treed3475c68c3945683c91112e43b933c1e0fa7de09 /index.php
parentb6046b3a7b490f17899be820c0d00e1521c53d0c (diff)
add a separate check for php version because of T_PAAMAYIM_NEKUDOTAYIM on 5.2
Diffstat (limited to 'index.php')
-rw-r--r--index.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/index.php b/index.php
index 70ded3670..fa868318a 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 "<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());