summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2014-08-12 19:36:45 +0400
committerAndrew Dolgov <[email protected]>2014-08-12 19:36:45 +0400
commitcf0231f9d1f0ffdcb5b5638b5502cab48f6f4c1e (patch)
tree38aa1aeb8e4651cf44a2117e43994271b2b8d5a2 /include
parent0084f0d1ba81522b243bb3b9138334ba0a7d2f00 (diff)
stored http error text in curl mode
Diffstat (limited to 'include')
-rw-r--r--include/functions.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/functions.php b/include/functions.php
index 8d07acf5a..a8fc9fbe5 100644
--- a/include/functions.php
+++ b/include/functions.php
@@ -10,6 +10,7 @@
$fetch_last_error = false;
$fetch_last_error_code = false;
$fetch_last_content_type = false;
+ $fetch_last_error_content = false; // curl only for the time being
$fetch_curl_used = false;
$suppress_debugging = false;
@@ -348,6 +349,7 @@
global $fetch_last_error;
global $fetch_last_error_code;
+ global $fetch_last_error_content;
global $fetch_last_content_type;
global $fetch_curl_used;
@@ -430,6 +432,7 @@
} else {
$fetch_last_error = "HTTP Code: $http_code";
}
+ $fetch_last_error_content = $contents;
curl_close($ch);
return false;
}