From e7d75ad2ce9e9e49cd3d9309eaa229bc1a562fcd Mon Sep 17 00:00:00 2001 From: Petr Shumilov Date: Wed, 11 Nov 2026 18:54:35 +0300 Subject: [PATCH] Fix value serialization of CURLOPT_RESOLVE option Signed-off-by: Petr Shumilov --- runtime-light/stdlib/curl/curl-easy-functions.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtime-light/stdlib/curl/curl-easy-functions.h b/runtime-light/stdlib/curl/curl-easy-functions.h index 558c06f88d..a885304d31 100644 --- a/runtime-light/stdlib/curl/curl-easy-functions.h +++ b/runtime-light/stdlib/curl/curl-easy-functions.h @@ -219,7 +219,7 @@ inline auto f$curl_setopt(kphp::web::curl::easy_type easy_id, int64_t option, co array arr_of_str{arr.size()}; auto i{0}; for (auto p : arr) { - arr_of_str[i++] = f$strval(p.get_value()); + arr_of_str[f$strval(i++)] = f$strval(p.get_value()); } auto res{kphp::web::property::set(st, option, kphp::web::property::value::as_array_of_string(arr_of_str))}; if (!res.has_value()) [[unlikely]] {