add CURLOPT_ABSTRACT_UNIX_SOCKET
authorMichael Wallner <mike@php.net>
Mon, 1 Mar 2021 16:40:54 +0000 (17:40 +0100)
committerMichael Wallner <mike@php.net>
Mon, 1 Mar 2021 16:40:54 +0000 (17:40 +0100)
src/php_http_client_curl.c

index 459b78d41d18855c54a7ad5bb1d880b877aa2144..621b2f56dbffff231d2819f4934e7b14c48a3146 100644 (file)
@@ -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