PHP >= 5.2.0

This commit is contained in:
Roland Gruber 2007-10-01 19:04:06 +00:00
parent cfbf05e997
commit 8d3f9f02c3
1 changed files with 4 additions and 0 deletions

View File

@ -53,6 +53,10 @@ if (! function_exists('gettext') || !function_exists('_')) {
if (! function_exists('utf8_decode')) {
$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
$writableDirs = array('sess', 'tmp');
for ($i = 0; $i < sizeof($writableDirs); $i++) {