From: Michael Wallner Date: Mon, 23 May 2016 15:49:58 +0000 (+0200) Subject: avoid 'error: Success' condition X-Git-Tag: RELEASE_2_6_0_BETA1~25 X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=commitdiff_plain;h=f7ad16aa313ee3815616e48981f90a1a3fbce00c;hp=70d751fad531d8c91c5f88197f36116115748718 avoid 'error: Success' condition --- diff --git a/src/php_http_client_curl.c b/src/php_http_client_curl.c index 435008c..bd4c14f 100644 --- a/src/php_http_client_curl.c +++ b/src/php_http_client_curl.c @@ -1601,7 +1601,7 @@ static ZEND_RESULT_CODE php_http_curle_set_option(php_http_option_t *opt, zval * php_http_client_curl_handler_t *curl = userdata; CURL *ch = curl->handle; zval tmp; - CURLcode rc = CURLE_OK; + CURLcode rc = CURLE_UNKNOWN_OPTION; ZEND_RESULT_CODE rv = SUCCESS; TSRMLS_FETCH_FROM_CTX(curl->client->ts);