[HttpClient] CurlHttpClient
keep reference to resources passed by form data
#60506
Labels
CurlHttpClient
keep reference to resources passed by form data
#60506
Symfony version(s) affected
Confirmed for 6.4
Description
When using form data and resources,
CurlHttpClient
leaks the resource. It is likely kept alive by aCurlHandle
at that point.How to reproduce
Each dump return the resource held by
$data
. The resource held by$canary
is only returned by the first dump.Do note that passing the resource as body (e.g.
['body' => $data]
) works as expected.The text was updated successfully, but these errors were encountered: