add a separate check for php version because of T_PAAMAYIM_NEKUDOTAYIM on 5.2
This commit is contained in:
parent
b6046b3a7b
commit
d2ef966e8d
|
@ -5,6 +5,13 @@
|
||||||
exit;
|
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 .
|
set_include_path(dirname(__FILE__) ."/include" . PATH_SEPARATOR .
|
||||||
get_include_path());
|
get_include_path());
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue