Skip to content
Snippets Groups Projects
Commit 001d05ed authored by Andreas Gohr's avatar Andreas Gohr
Browse files

new PHP minimum requirement is now 5.3.3

that's the version in Debian old stable
parent a1175759
No related branches found
No related tags found
No related merge requests found
......@@ -114,13 +114,13 @@ function check(){
if ($INFO['isadmin'] || $INFO['ismanager']){
msg('DokuWiki version: '.getVersion(),1);
if(version_compare(phpversion(),'5.2.0','<')){
msg('Your PHP version is too old ('.phpversion().' vs. 5.2.0+ needed)',-1);
if(version_compare(phpversion(),'5.3.3','<')){
msg('Your PHP version is too old ('.phpversion().' vs. 5.3.3+ needed)',-1);
}else{
msg('PHP version '.phpversion(),1);
}
} else {
if(version_compare(phpversion(),'5.2.0','<')){
if(version_compare(phpversion(),'5.3.3','<')){
msg('Your PHP version is too old',-1);
}
}
......
......@@ -538,8 +538,8 @@ function check_functions(){
global $lang;
$ok = true;
if(version_compare(phpversion(),'5.2.0','<')){
$error[] = sprintf($lang['i_phpver'],phpversion(),'5.2.0');
if(version_compare(phpversion(),'5.3.3','<')){
$error[] = sprintf($lang['i_phpver'],phpversion(),'5.3.3');
$ok = false;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment