curl_error()
function curl_error(CurlHandle $handle): string
Returns a string describing the last cURL error.
Parameters:
$handle(CurlHandle)
Returns: string
Availability
- Compiled (AOT): supported through the compiler-injected curl prelude.
eval()(magician interpreter): supported — declarative interpreter builtin (crates/elephc-magician/src/interpreter/builtins/curl/curl_error.rs).
No examples yet — check examples/ and showcases/ for usage patterns.
Internals
For how curl_error is implemented in the compiler, see the internals page.