#1334 설치 시 PHP 버전 체크 시 5.3.0 이상으로 변경

This commit is contained in:
bnu 2015-03-19 13:41:47 +09:00
parent 712541c50c
commit eaea1178ec
5 changed files with 35 additions and 40 deletions

View file

@ -340,14 +340,17 @@ class installController extends install
// Check each item
$checklist = array();
// 0. check your version of php (5.2.4 or higher)
if(version_compare(PHP_VERSION, '5.2.4') == -1) $checklist['php_version'] = false;
else if(version_compare(PHP_VERSION, '5.3.10') == -1)
$checklist['php_version'] = true;
if(version_compare(PHP_VERSION, __XE_MIN_PHP_VERSION__, '<'))
{
$checklist['php_version'] = false;
}
if(version_compare(PHP_VERSION, __XE_RECOMMEND_PHP_VERSION__, '<'))
{
$checklist['php_version'] = true;
Context::set('phpversion_warning', true);
}
else $checklist['php_version'] = true;
// 1. Check permission
if(is_writable('./')||is_writable('./files')) $checklist['permission'] = true;
else $checklist['permission'] = false;