From 94a301a8e3c3544c1177f74e15f2c7f0bd7036cf Mon Sep 17 00:00:00 2001 From: Michael Wallner Date: Thu, 11 Dec 2008 16:35:21 +0000 Subject: [PATCH] add new proxy constants to HttpRequest, too --- http_request_object.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/http_request_object.c b/http_request_object.c index 310772a..1b42347 100644 --- a/http_request_object.c +++ b/http_request_object.c @@ -439,6 +439,10 @@ PHP_MINIT_FUNCTION(http_request_object) # if HTTP_CURL_VERSION(7,15,2) zend_declare_class_constant_long(THIS_CE, ZEND_STRS("PROXY_SOCKS4")-1, CURLPROXY_SOCKS4 TSRMLS_CC); # endif +#if HTTP_CURL_VERSION(7,18,0) + zend_declare_class_constant_long(THIS_CE, ZEND_STRS("PROXY_SOCKS4A")-1, CURLPROXY_SOCKS5 TSRMLS_CC); + zend_declare_class_constant_long(THIS_CE, ZEND_STRS("PROXY_SOCKS5_HOSTNAME")-1, CURLPROXY_SOCKS5 TSRMLS_CC); +#endif zend_declare_class_constant_long(THIS_CE, ZEND_STRS("PROXY_SOCKS5")-1, CURLPROXY_SOCKS5 TSRMLS_CC); zend_declare_class_constant_long(THIS_CE, ZEND_STRS("PROXY_HTTP")-1, CURLPROXY_HTTP TSRMLS_CC); #endif /* WONKY */ -- 2.30.2