]> granicus.if.org Git - php/commitdiff
FIX #71831: CURLOPT_NOPROXY applied as long instead of string
authorMichael Sierks <michael.sierks@priceline.com>
Fri, 18 Mar 2016 12:29:01 +0000 (07:29 -0500)
committerMichael Sierks <michael.sierks@priceline.com>
Fri, 18 Mar 2016 12:29:01 +0000 (07:29 -0500)
The CURLOPT_NOPROXY option value is converted to a long before
being applied as a curl option. This causes the option to have
no effect. This patch changes this conversion to a string.

ext/curl/interface.c

index 98cc5e2bb4a2ec534e7a41c27ac0695d0a9b4a33..19d8bb02b589963005468995ee0a2366dec95b2c 100644 (file)
@@ -2223,7 +2223,6 @@ static int _php_curl_setopt(php_curl *ch, long option, zval **zvalue TSRMLS_DC)
                case CURLOPT_CERTINFO:
 #endif
 #if LIBCURL_VERSION_NUM >= 0x071304 /* Available since 7.19.4 */
-               case CURLOPT_NOPROXY:
                case CURLOPT_PROTOCOLS:
                case CURLOPT_REDIR_PROTOCOLS:
                case CURLOPT_SOCKS5_GSSAPI_NEC:
@@ -2305,6 +2304,7 @@ static int _php_curl_setopt(php_curl *ch, long option, zval **zvalue TSRMLS_DC)
                case CURLOPT_USERNAME:
 #endif
 #if LIBCURL_VERSION_NUM >= 0x071304 /* Available since 7.19.4 */
+               case CURLOPT_NOPROXY:
                case CURLOPT_SOCKS5_GSSAPI_SERVICE:
 #endif
 #if LIBCURL_VERSION_NUM >= 0x071400 /* Available since 7.20.0 */