avoid 'error: Success' condition
authorMichael Wallner <mike@php.net>
Mon, 23 May 2016 15:49:58 +0000 (17:49 +0200)
committerMichael Wallner <mike@php.net>
Mon, 23 May 2016 15:49:58 +0000 (17:49 +0200)
src/php_http_client_curl.c

index 435008c..bd4c14f 100644 (file)
@@ -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);