projects
/
m6w6
/
ext-http
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
|
github
raw
|
patch
|
inline
| side by side (parent:
f84a41f
)
add CURLOPT_DNS_SHUFFLE_ADDRESSES
author
Michael Wallner
<mike@php.net>
Fri, 5 Mar 2021 06:45:47 +0000
(07:45 +0100)
committer
Michael Wallner
<mike@php.net>
Fri, 5 Mar 2021 06:45:47 +0000
(07:45 +0100)
src/php_http_client_curl.c
patch
|
blob
|
history
diff --git
a/src/php_http_client_curl.c
b/src/php_http_client_curl.c
index 8f5b2d5b7275057200f0812cf56db34d5486584c..0ff9139343f55c62a38c8c84aa1cebb25e8049e8 100644
(file)
--- a/
src/php_http_client_curl.c
+++ b/
src/php_http_client_curl.c
@@
-1220,7
+1220,7
@@
static void php_http_curle_options_init(php_http_options_t *registry)
}
#endif
#if PHP_HTTP_CURL_VERSION(7,60,0)
}
#endif
#if PHP_HTTP_CURL_VERSION(7,60,0)
- php_http_option_register(registry, ZEND_STRL("haproxy_protocol"), CURLOPT_HAPROXYPROTOCOL, _IS_BOOL);
+ php_http_option_register(registry, ZEND_STRL("haproxy_protocol"), CURLOPT_HAPROX
YPROTOCOL, _IS_BOOL);
#endif
/* unix sockets */
#endif
/* unix sockets */
@@
-1266,6
+1266,10
@@
static void php_http_curle_options_init(php_http_options_t *registry)
}
# endif
#endif
}
# endif
#endif
+#if PHP_HTTP_CURL_VERSION(7,60,0)
+ php_http_option_register(registry, ZEND_STRL("dns_shuffle_addresses"), CURLOPT_DNS_SHUFFLE_ADDRESSES, _IS_BOOL);
+#endif
+
/* limits */
php_http_option_register(registry, ZEND_STRL("low_speed_limit"), CURLOPT_LOW_SPEED_LIMIT, IS_LONG);
/* limits */
php_http_option_register(registry, ZEND_STRL("low_speed_limit"), CURLOPT_LOW_SPEED_LIMIT, IS_LONG);