summaryrefslogtreecommitdiff
path: root/ext/curl/php_curl.h
diff options
context:
space:
mode:
Diffstat (limited to 'ext/curl/php_curl.h')
-rw-r--r--ext/curl/php_curl.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/ext/curl/php_curl.h b/ext/curl/php_curl.h
index 359d6058ef..5d93f16c03 100644
--- a/ext/curl/php_curl.h
+++ b/ext/curl/php_curl.h
@@ -58,6 +58,9 @@ extern zend_module_entry curl_module_entry;
#define PHP_CURL_RETURN 4
#define PHP_CURL_IGNORE 7
+#define SAVE_CURL_ERROR(__handle, __err) \
+ do { (__handle)->err.no = (int) __err; } while (0)
+
extern int le_curl;
#define le_curl_name "cURL handle"
extern int le_curl_multi_handle;