summaryrefslogtreecommitdiff
path: root/ext/curl/php_curl.h
diff options
context:
space:
mode:
authorPierrick Charron <pierrick@php.net>2012-12-19 19:40:29 -0500
committerPierrick Charron <pierrick@php.net>2012-12-19 19:40:29 -0500
commitc46e1cdcae70254cfc0b7d5781f2c71162a3734d (patch)
tree2e3c23195a41370c2e2cd8477b11ba7ba9911ebc /ext/curl/php_curl.h
parente01fe5315c5fd03231641f7bb0819dbfaaadf935 (diff)
downloadphp-git-c46e1cdcae70254cfc0b7d5781f2c71162a3734d.tar.gz
Fixed bug #55438 (Curlwapper is not sending http header randomly)
Since curl multi is used, it sometime happen that the resource is freed before the curl multi really execute the query. The patch will store the headers slist in the curlstream handle and free it only when the stream will be closed
Diffstat (limited to 'ext/curl/php_curl.h')
-rw-r--r--ext/curl/php_curl.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/curl/php_curl.h b/ext/curl/php_curl.h
index 05275455e7..af6a965c99 100644
--- a/ext/curl/php_curl.h
+++ b/ext/curl/php_curl.h
@@ -181,6 +181,7 @@ typedef struct {
CURLMcode mcode;
int pending;
zval *headers;
+ struct curl_slist *headers_slist; /* holds custom headers sent out in the request */
} php_curl_stream;