From 8d3f9f02c3836d2030440716563afdca210a4108 Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Mon, 1 Oct 2007 19:04:06 +0000 Subject: [PATCH] PHP >= 5.2.0 --- lam/templates/login.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lam/templates/login.php b/lam/templates/login.php index 9adfeb22..9de4886c 100644 --- a/lam/templates/login.php +++ b/lam/templates/login.php @@ -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++) {