Closed
Description
https://www.php.net/manual/en/function.curl-setopt
the CURLOPT_XFERINFOFUNCTION description says
A callback accepting two parameters. Has a similar purpose as CURLOPT_PROGRESSFUNCTION but is more modern and the preferred option from cURL.
in fact its the same callback argument list as in CURLOPT_PROGRESSFUNCTION with 5 parameters, not 2 parameters