Skip to content

Commit 63ab6d8

Browse files
LinusUJulien Pauli
authored and
Julien Pauli
committed
curl: add new proxy constants
1 parent d5a1a33 commit 63ab6d8

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

ext/curl/interface.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -845,6 +845,11 @@ PHP_MINIT_FUNCTION(curl)
845845
REGISTER_CURL_CONSTANT(CURLPROXY_SOCKS4);
846846
REGISTER_CURL_CONSTANT(CURLPROXY_SOCKS5);
847847

848+
#if LIBCURL_VERSION_NUM >= 0x071200 /* Available since 7.18.0 */
849+
REGISTER_CURL_CONSTANT(CURLPROXY_SOCKS4A);
850+
REGISTER_CURL_CONSTANT(CURLPROXY_SOCKS5_HOSTNAME);
851+
#endif
852+
848853
/* Curl Share constants */
849854
REGISTER_CURL_CONSTANT(CURLSHOPT_NONE);
850855
REGISTER_CURL_CONSTANT(CURLSHOPT_SHARE);

0 commit comments

Comments
 (0)