From f7ad16aa313ee3815616e48981f90a1a3fbce00c Mon Sep 17 00:00:00 2001 From: Michael Wallner Date: Mon, 23 May 2016 17:49:58 +0200 Subject: [PATCH] avoid 'error: Success' condition --- src/php_http_client_curl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.30.2