PHP version check

darcs-hash:20050117175624-9977f-ab994982de0366e96e1066212e6ff3c53808fbbf.gz
This commit is contained in:
andi 2005-01-17 18:56:24 +01:00
parent 95ced01f95
commit 49022a38de
1 changed files with 8 additions and 0 deletions

View File

@ -884,6 +884,14 @@ function check(){
global $conf;
global $INFO;
if(version_compare(phpversion(),'4.3.0','<')){
msg('Your PHP version is too old ('.phpversion().' vs. 4.3.+ recommended)',-1);
}elseif(version_compare(phpversion(),'4.3.10','<')){
msg('Consider upgrading PHP to 4.3.10 or higher for security reasons (your version: '.phpversion().')',0);
}else{
msg('PHP version '.phpversion(),1);
}
if(is_writable($conf['changelog'])){
msg('Changelog is writable',1);
}else{