← All docs

chmod() — internals

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

chmod() — internals

Where it lives

Lowering notes

  • Lowers chmod(path, mode) through the target-aware runtime helper.

Runtime helpers

No direct __rt_* helpers captured — the lowering is inlined or routes through another builtin.

Signature summary

function chmod(string $filename, int $permissions): bool

What the type checker enforces

  • Arity: takes exactly 2 arguments.

Eval interpreter (magician)

Cross-references