From: Michael Wallner Date: Wed, 27 Apr 2016 10:11:15 +0000 (+0200) Subject: fix ZVAL_STRING usage in options_init X-Git-Tag: RELEASE_3_1_0_BETA1~20 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=501c4872a00787c94ec9595e3de377774101850d;p=m6w6%2Fext-http fix ZVAL_STRING usage in options_init --- diff --git a/src/php_http_client_curl.c b/src/php_http_client_curl.c index cc62c15..5b6a628 100644 --- a/src/php_http_client_curl.c +++ b/src/php_http_client_curl.c @@ -1522,7 +1522,7 @@ static void php_http_curle_options_init(php_http_options_t *registry) opt->flags |= PHP_HTTP_CURLE_OPTION_CHECK_STRLEN; opt->flags |= PHP_HTTP_CURLE_OPTION_CHECK_BASEDIR; #ifdef PHP_HTTP_CURL_CAPATH - ZVAL_STRING(&opt->defval, PHP_HTTP_CURL_CAPATH, 0); + ZVAL_PSTRING(&opt->defval, PHP_HTTP_CURL_CAPATH); #endif } if ((opt = php_http_option_register(registry, ZEND_STRL("random_file"), CURLOPT_RANDOM_FILE, IS_STRING))) {