I have changed check_php_version() to use version_compare() in an attempt to fix bug 3176

This commit is contained in:
gustav_delius
2005-05-09 17:24:03 +00:00
parent 59552aab4d
commit 4b97919fcd
+1 -3
View File
@@ -4868,9 +4868,7 @@ function get_list_of_plugins($plugin='mod', $exclude='') {
* @todo Finish documenting this function
*/
function check_php_version($version='4.1.0') {
$minversion = intval(str_replace('.', '', $version));
$curversion = intval(str_replace('.', '', phpversion()));
return ($curversion >= $minversion);
return (version_compare(phpversion(), $version) >= 0);
}