Replace regex by explode as suggested by Ermal

This commit is contained in:
Renato Botelho 2014-01-21 16:49:35 -02:00
parent 613a94b31b
commit 5459701254

View File

@ -1628,7 +1628,8 @@ function isvm() {
}
function get_freebsd_version() {
return preg_replace('/\..*$/', '', php_uname("r"));
$version = explode(".", php_uname("r"));
return $version[0];
}
function download_file($url, $destination, $verify_ssl = false, $connect_timeout = 60, $timeout = 0) {