diff options
author | Andrew Dolgov <[email protected]> | 2013-03-14 19:16:01 +0400 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2013-03-14 19:16:01 +0400 |
commit | d2ef966e8d015d5f4a2aee2d9cdd7d17364e3987 (patch) | |
tree | d3475c68c3945683c91112e43b933c1e0fa7de09 /index.php | |
parent | b6046b3a7b490f17899be820c0d00e1521c53d0c (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.php | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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()); |