← All docs

curl_init() — internals

Compiler internals for curl_init(): lowering path, type checks, and runtime helpers.

curl_init() — internals

Where it lives

Lowering notes

  • Implemented by the compiler-injected curl prelude.

Semantic descriptor

Shared contract implemented by an injected elephc-PHP prelude.

EIR and runtime boundary

Implemented by an injected elephc-PHP prelude.

Signature summary

function curl_init(?string $url = null): CurlHandle

What the type checker enforces

  • Arity: takes 0–1 arguments (1 optional).

Eval interpreter (magician)

Cross-references