aboutsummaryrefslogtreecommitdiff
path: root/engine/lib
diff options
context:
space:
mode:
Diffstat (limited to 'engine/lib')
-rw-r--r--engine/lib/install.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/engine/lib/install.php b/engine/lib/install.php
index c0ed7ab91..f4117b4e8 100644
--- a/engine/lib/install.php
+++ b/engine/lib/install.php
@@ -19,7 +19,13 @@
*/
function php_check_version()
{
- if (version_compare(phpversion(), '5.2.0', '>='))
+ if (
+ (version_compare(phpversion(), '5.1.6', '>=')) &&
+ (version_compare(phpversion(), '5.2.0', '<'))
+ )
+ register_error(elgg_echo('configurationwarning:phpversion'));
+
+ if (version_compare(phpversion(), '5.1.6', '>='))
return true;
return false;