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 committed Nov 27, 2016
1 parent 413f973 commit 4120362
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 @@ -2275,6 +2275,12 @@ function check_database_tables_row_format(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 4120362

Please sign in to comment.