Aleksander Machniak
2015-09-21 0596f79a183b4bb29f1ff9ab33dde776e6f10fdc
Require PHP5
1 files modified
10 ■■■■ changed files
installer/check.php 10 ●●●● patch | view | raw | blame | history
installer/check.php
@@ -93,8 +93,14 @@
define('MIN_PHP_VERSION', '5.3.7');
if (version_compare(PHP_VERSION, MIN_PHP_VERSION, '>=')) {
    $RCI->pass('Version', 'PHP ' . PHP_VERSION . ' detected');
} else {
    if (PHP_MAJOR_VERSION != 5) {
        $RCI->fail('Version', 'PHP5 is required, ' . PHP_VERSION . ' detected');
    }
    else {
        $RCI->pass('Version', 'PHP ' . PHP_VERSION . ' detected');
    }
}
else {
    $RCI->fail('Version', 'PHP Version ' . MIN_PHP_VERSION . ' or greater is required ' . PHP_VERSION . ' detected');
}
?>