← All docs

hash_file() — internals

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

hash_file() — internals

Where it lives

Lowering notes

  • Lowers hash_file(algo, filename, binary?) by reading bytes then hashing them.

Runtime helpers

The following runtime helpers are referenced:

  • __rt_vd_write

Signature summary

function hash_file(string $algo, string $filename, bool $binary = false): mixed

What the type checker enforces

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

Eval interpreter (magician)

Cross-references