← All docs

readfile() — internals

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

readfile() — internals

Where it lives

Lowering notes

  • Lowers readfile(path) and boxes the runtime byte-count-or-false result.

Runtime helpers

The following runtime helpers are referenced:

  • __rt_vd_write

Signature summary

function readfile(string $filename): mixed

What the type checker enforces

  • Arity: takes exactly 1 argument.

Eval interpreter (magician)

Cross-references