From ac47ed92fbb96581eaebae0892546244de846d91 Mon Sep 17 00:00:00 2001 From: Vladimir Zhirov Date: Sat, 26 Nov 2016 23:42:54 +0400 Subject: [PATCH] MDL-57163 installation: fixed "Call to undefined function curl_version" --- lib/upgradelib.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/upgradelib.php b/lib/upgradelib.php index acab0d48d14..12eff4a252d 100644 --- a/lib/upgradelib.php +++ b/lib/upgradelib.php @@ -2326,6 +2326,12 @@ function check_unoconv_version(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";