From a6783fdb13cb5cc9b0225cb1ea1ac8c028a775da Mon Sep 17 00:00:00 2001 From: Andreas Gohr Date: Sun, 26 Jul 2009 13:52:55 +0200 Subject: Updated version checks for PHP 5 Ignore-this: 97d3d6fd8dc65d0cfce6b976cc2fad28 The next release will require PHP 5, the related checks were upgraded to check for at least 5.0.0 (we might need to tune this) darcs-hash:20090726115255-7ad00-59d67b61739db8eea0288a8010d7cdf507ab867b.gz --- inc/infoutils.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'inc') diff --git a/inc/infoutils.php b/inc/infoutils.php index ac59d9488..c2db31f7d 100644 --- a/inc/infoutils.php +++ b/inc/infoutils.php @@ -81,10 +81,8 @@ function check(){ msg('DokuWiki version: '.getVersion(),1); - if(version_compare(phpversion(),'4.3.3','<')){ - msg('Your PHP version is too old ('.phpversion().' vs. 4.3.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); + if(version_compare(phpversion(),'5.0.0','<')){ + msg('Your PHP version is too old ('.phpversion().' vs. 5.0.0+ recommended)',-1); }else{ msg('PHP version '.phpversion(),1); } -- cgit v1.2.3