← All docs

chdir() — internals

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

chdir() — internals

Where it lives

Lowering notes

  • Lowers chdir(path) through the target-aware runtime helper.

Runtime helpers

The following runtime helpers are referenced:

  • __rt_chdir
  • __rt_copy
  • __rt_glob
  • __rt_scandir
  • __rt_tempnam

Signature summary

function chdir(string $directory): bool

What the type checker enforces

  • Arity: takes exactly 1 argument.

Eval interpreter (magician)

Cross-references