← All docs

mime_content_type() - internals

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

mime_content_type() - internals

Where it lives

Lowering notes

  • Implemented by the compiler-injected fileinfo 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 mime_content_type(string|resource $filename): string|false

What the type checker enforces

  • Arity: takes exactly 1 argument.

Eval interpreter (magician)

Cross-references