Skip to content

Commit

Permalink
MDL-57163 installation: fixed "Call to undefined function curl_version"
Browse files Browse the repository at this point in the history
  • Loading branch information
vvzh authored and David Monllao committed Nov 28, 2016
1 parent 3eabedb commit acefc7d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/upgradelib.php
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down

0 comments on commit acefc7d

Please sign in to comment.