← All docs

link() — internals

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

Where it lives

Lowering notes

  • Lowers link(oldpath, newpath) through the target-aware libc wrapper.

Runtime helpers

The following runtime helpers are referenced:

  • __rt_fileatime
  • __rt_filectime
  • __rt_link
  • __rt_readlink

Signature summary

function link(string $target, string $link): bool

What the type checker enforces

  • Arity: takes exactly 2 arguments.

Eval interpreter (magician)

Cross-references