projects
/
m6w6
/
ext-http
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
ci: test against 7.81
[m6w6/ext-http]
/
src
/
php_http_client_curl.c
diff --git
a/src/php_http_client_curl.c
b/src/php_http_client_curl.c
index daadf698e5b15f8058f7cd4a590e253fe652e8ba..8c38c6c60f287d634b80f89e50ad69ed3b0fc45c 100644
(file)
--- a/
src/php_http_client_curl.c
+++ b/
src/php_http_client_curl.c
@@
-1486,7
+1486,10
@@
static void php_http_curle_options_init(php_http_options_t *registry)
}
#endif
#if PHP_HTTP_CURL_VERSION(7,49,0)
}
#endif
#if PHP_HTTP_CURL_VERSION(7,49,0)
+# if defined(linux) || defined(__APPLE__)
+ /* CURLOPT_TCP_FASTOPEN is not supported (yet) on Windows */
php_http_option_register(registry, ZEND_STRL("tcp_fastopen"), CURLOPT_TCP_FASTOPEN, _IS_BOOL);
php_http_option_register(registry, ZEND_STRL("tcp_fastopen"), CURLOPT_TCP_FASTOPEN, _IS_BOOL);
+# endif
#endif
/* ssl */
#endif
/* ssl */
@@
-2203,7
+2206,9
@@
static ZEND_RESULT_CODE php_http_client_curl_handler_prepare(php_http_client_cur
curl_easy_setopt(curl->handle, CURLOPT_URL, storage->url);
/* apply options */
curl_easy_setopt(curl->handle, CURLOPT_URL, storage->url);
/* apply options */
- php_http_options_apply(&php_http_curle_options, enqueue->options, curl);
+ if (SUCCESS != php_http_options_apply(&php_http_curle_options, enqueue->options, curl)) {
+ return FAILURE;
+ }
/* request headers */
php_http_message_update_headers(msg);
/* request headers */
php_http_message_update_headers(msg);