← All docs

finfo_file() - internals

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

finfo_file() - 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 finfo_file(finfo $finfo, string $filename, int $flags = 0, ?resource $context = null): string|false

What the type checker enforces

  • Arity: takes 2–4 arguments (2 optional).

Eval interpreter (magician)

Cross-references