← All docs

error_log() — internals

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

error_log() — internals

Where it lives

Lowering notes

  • Implemented by the compiler-injected web 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 error_log(string $message, int $message_type = 0, ?string $destination = null, ?string $additional_headers = null): bool

What the type checker enforces

  • Arity: takes 1–4 arguments (3 optional).

Eval interpreter (magician)

Not callable from eval’d code — the magician interpreter has no entry for this builtin.

Cross-references