MDL-57163 installation: fixed "Call to undefined function curl_version"

This commit is contained in:
Vladimir Zhirov 2016-11-26 23:42:54 +04:00 committed by David Monllao
parent 3eabedbb92
commit acefc7d963

View File

@ -2356,6 +2356,12 @@ function check_tls_libraries(environment_results $result) {
*/
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";