]> git.mjollnir.org Git - moodle.git/commitdiff
fixed problem with is_executable() in windows since PHP 5.0.0 - curl binary not suppo...
authorskodak <skodak>
Thu, 4 Jan 2007 10:45:57 +0000 (10:45 +0000)
committerskodak <skodak>
Thu, 4 Jan 2007 10:45:57 +0000 (10:45 +0000)
lib/libcurlemu/libcurlexternal.inc.php

index 0ee5437de0d49bc1dbdf82efa4fb166bcf8280ab..723a908c1d0d20f65112dabc62a82400e6ece878 100755 (executable)
@@ -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;