Skip to content

Commit 5256ffd

Browse files
author
Julien Pauli
committed
Merge branch 'PHP-5.5' into PHP-5.6
* PHP-5.5: updated NEWS curl: add new proxy constants
2 parents ee2f749 + 1bfbb54 commit 5256ffd

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
@@ -837,6 +837,11 @@ PHP_MINIT_FUNCTION(curl)
837837
REGISTER_CURL_CONSTANT(CURLPROXY_SOCKS4);
838838
REGISTER_CURL_CONSTANT(CURLPROXY_SOCKS5);
839839

840+
#if LIBCURL_VERSION_NUM >= 0x071200 /* Available since 7.18.0 */
841+
REGISTER_CURL_CONSTANT(CURLPROXY_SOCKS4A);
842+
REGISTER_CURL_CONSTANT(CURLPROXY_SOCKS5_HOSTNAME);
843+
#endif
844+
840845
/* Curl Share constants */
841846
REGISTER_CURL_CONSTANT(CURLSHOPT_NONE);
842847
REGISTER_CURL_CONSTANT(CURLSHOPT_SHARE);

0 commit comments

Comments
 (0)