MDL-25186: add environmental check to recommend PHP 5.3.3

This commit is contained in:
Rossiani Wijaya
2010-12-22 16:45:17 +08:00
parent f056cb544d
commit 39f2bbf3fb
3 changed files with 15 additions and 0 deletions
+9
View File
@@ -54,3 +54,12 @@ function php_check_register_globals($result) {
return $result;
}
function php_check_php533($result) {
if (version_compare(phpversion(), '5.3.3') < 0) {
$result->status = false;
} else {
$result = null;
}
return $result;
}