From c233a6c3f9e270656fc78454b3a4927dfceff625 Mon Sep 17 00:00:00 2001 From: skodak Date: Thu, 4 Jan 2007 10:45:57 +0000 Subject: [PATCH] fixed problem with is_executable() in windows since PHP 5.0.0 - curl binary not supported in win32 anyway --- lib/libcurlemu/libcurlexternal.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.39.5