PHP >= 5.2.0
This commit is contained in:
parent
cfbf05e997
commit
8d3f9f02c3
|
@ -53,6 +53,10 @@ if (! function_exists('gettext') || !function_exists('_')) {
|
||||||
if (! function_exists('utf8_decode')) {
|
if (! function_exists('utf8_decode')) {
|
||||||
$criticalErrors[] = array("ERROR", "Your PHP has no XML support!", "Please install the XML extension for PHP.");
|
$criticalErrors[] = array("ERROR", "Your PHP has no XML support!", "Please install the XML extension for PHP.");
|
||||||
}
|
}
|
||||||
|
// check if PHP >= 5.2
|
||||||
|
if (version_compare(phpversion(), '5.2.0') < 0) {
|
||||||
|
$criticalErrors[] = array("ERROR", "LAM needs PHP 5 greater or equal as 5.2.0!", "Please upgrade your PHP installation.");
|
||||||
|
}
|
||||||
// check file permissions
|
// check file permissions
|
||||||
$writableDirs = array('sess', 'tmp');
|
$writableDirs = array('sess', 'tmp');
|
||||||
for ($i = 0; $i < sizeof($writableDirs); $i++) {
|
for ($i = 0; $i < sizeof($writableDirs); $i++) {
|
||||||
|
|
Loading…
Reference in New Issue