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.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/ext/curl/php_curl.h b/ext/curl/php_curl.h
index 0a0da5aa02..5d93f16c03 100644
--- a/ext/curl/php_curl.h
+++ b/ext/curl/php_curl.h
@@ -2,7 +2,7 @@
+----------------------------------------------------------------------+
| PHP Version 7 |
+----------------------------------------------------------------------+
- | Copyright (c) 1997-2018 The PHP Group |
+ | Copyright (c) The PHP Group |
+----------------------------------------------------------------------+
| This source file is subject to version 3.01 of the PHP license, |
| that is bundled with this package in the file LICENSE, and is |
@@ -58,7 +58,8 @@ extern zend_module_entry curl_module_entry;
#define PHP_CURL_RETURN 4
#define PHP_CURL_IGNORE 7
-#define SAVE_CURL_ERROR(__handle, __err) (__handle)->err.no = (int) __err;
+#define SAVE_CURL_ERROR(__handle, __err) \
+ do { (__handle)->err.no = (int) __err; } while (0)
extern int le_curl;
#define le_curl_name "cURL handle"
@@ -169,6 +170,7 @@ struct _php_curl_send_headers {
struct _php_curl_free {
zend_llist str;
zend_llist post;
+ zend_llist stream;
HashTable *slist;
};