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:
3986624
)
add CURLOPT_ABSTRACT_UNIX_SOCKET
author
Michael Wallner
<mike@php.net>
Mon, 1 Mar 2021 16:40:54 +0000
(17:40 +0100)
committer
Michael Wallner
<mike@php.net>
Mon, 1 Mar 2021 16:40:54 +0000
(17:40 +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 459b78d41d18855c54a7ad5bb1d880b877aa2144..621b2f56dbffff231d2819f4934e7b14c48a3146 100644
(file)
--- a/
src/php_http_client_curl.c
+++ b/
src/php_http_client_curl.c
@@
-1226,6
+1226,11
@@
static void php_http_curle_options_init(php_http_options_t *registry)
opt->flags |= PHP_HTTP_CURLE_OPTION_CHECK_STRLEN;
opt->flags |= PHP_HTTP_CURLE_OPTION_CHECK_BASEDIR;
}
+#if PHP_HTTP_CURL_VERSION(7,53,0)
+ if ((opt = php_http_option_register(registry, ZEND_STRL("abstract_unix_socket"), CURLOPT_ABSTRACT_UNIX_SOCKET, IS_STRING))) {
+ opt->flags |= PHP_HTTP_CURLE_OPTION_CHECK_STRLEN;
+ }
+#endif
}
#endif