MDL-57163 installation: fixed "Call to undefined function curl_version"
This commit is contained in:
@@ -2453,6 +2453,12 @@ function upgrade_install_plugins(array $installable, $confirmed, $heading='', $c
|
||||
*/
|
||||
function check_libcurl_version(environment_results $result) {
|
||||
|
||||
if (!function_exists('curl_version')) {
|
||||
$result->setInfo('cURL PHP extension is not installed');
|
||||
$result->setStatus(false);
|
||||
return $result;
|
||||
}
|
||||
|
||||
// Supported version and version number.
|
||||
$supportedversion = 0x071304;
|
||||
$supportedversionstring = "7.19.4";
|
||||
|
||||
Reference in New Issue
Block a user