Skip to content

Commit 09c43bd

Browse files
author
Julien Pauli
committed
Merge branch 'PHP-5.6'
* PHP-5.6: Updated NEWS updated NEWS curl: add new proxy constants
2 parents 4f399a7 + caacaee commit 09c43bd

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

ext/curl/interface.c

+5
Original file line numberDiff line numberDiff line change
@@ -844,6 +844,11 @@ PHP_MINIT_FUNCTION(curl)
844844
REGISTER_CURL_CONSTANT(CURLPROXY_SOCKS4);
845845
REGISTER_CURL_CONSTANT(CURLPROXY_SOCKS5);
846846

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

0 commit comments

Comments
 (0)