From: Michael Wallner Date: Mon, 1 Mar 2021 16:40:54 +0000 (+0100) Subject: add CURLOPT_ABSTRACT_UNIX_SOCKET X-Git-Tag: v4.1.0~26 X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=commitdiff_plain;h=f7617fc887f285cf1ef4f83a514c4275936085bf;ds=sidebyside add CURLOPT_ABSTRACT_UNIX_SOCKET --- diff --git a/src/php_http_client_curl.c b/src/php_http_client_curl.c index 459b78d..621b2f5 100644 --- 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