From: skodak Date: Thu, 4 Jan 2007 10:45:57 +0000 (+0000) Subject: fixed problem with is_executable() in windows since PHP 5.0.0 - curl binary not suppo... X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=c233a6c3f9e270656fc78454b3a4927dfceff625;p=moodle.git fixed problem with is_executable() in windows since PHP 5.0.0 - curl binary not supported in win32 anyway --- diff --git a/lib/libcurlemu/libcurlexternal.inc.php b/lib/libcurlemu/libcurlexternal.inc.php index 0ee5437de0..723a908c1d 100755 --- a/lib/libcurlemu/libcurlexternal.inc.php +++ b/lib/libcurlemu/libcurlexternal.inc.php @@ -57,7 +57,7 @@ if (!defined("CURL_PATH")) define("CURL_PATH","/usr/bin/curl"); // - if CURLEXT_MISSING_IGNORE was defined, then implement the CURL functions anyway (even // though they won't work without the CURL binary installed) // - otherwise, raise a fatal error and halt the script -if (!is_executable(CURL_PATH)) { +if (!function_exists('is_executable') or !is_executable(CURL_PATH)) {//moodlefix if (defined("CURLEXT_MISSING_ABORT") && CURLEXT_MISSING_ABORT) { return;