You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Expose libcurl's CURLOPT_SEEKFUNCTION as a userland callable so a body
streamed via CURLOPT_READFUNCTION can be rewound and resent when libcurl
needs to replay it: on a redirect, on multi-pass authentication, or when
a reused connection dies. Without a seek callback these transfers fail
with CURLE_SEND_FAIL_REWIND, the gap behind bug #47204 and bug #80518.
The callback receives the CurlHandle, offset and origin and returns one
of CURL_SEEKFUNC_OK, CURL_SEEKFUNC_FAIL or CURL_SEEKFUNC_CANTSEEK. It
follows the existing callback options: a seek fcc on php_curl_handlers, a
curl_seek trampoline that validates the return value like
curl_prereqfunction, registration via HANDLE_CURL_OPTION_CALLABLE,
duplication in curl_copy_handle and release in curl_free_obj. The option
and constants exist since libcurl 7.18.0 so no version guards are needed.
@@ -42,3 +43,5 @@ TypeError: curl_setopt(): Argument #3 ($value) must be a valid callback for opti
42
43
TypeError: curl_setopt_array(): Argument #2 ($options) must be a valid callback for option CURLOPT_HEADERFUNCTION, function "undefined" not found or invalid function name
43
44
TypeError: curl_setopt(): Argument #3 ($value) must be a valid callback for option CURLOPT_READFUNCTION, function "undefined" not found or invalid function name
44
45
TypeError: curl_setopt_array(): Argument #2 ($options) must be a valid callback for option CURLOPT_READFUNCTION, function "undefined" not found or invalid function name
46
+
TypeError: curl_setopt(): Argument #3 ($value) must be a valid callback for option CURLOPT_SEEKFUNCTION, function "undefined" not found or invalid function name
47
+
TypeError: curl_setopt_array(): Argument #2 ($options) must be a valid callback for option CURLOPT_SEEKFUNCTION, function "undefined" not found or invalid function name
0 commit comments