← All docs

readlink() — internals

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

Where it lives

Lowering notes

  • Lowers readlink(path) and boxes the owned runtime string-or-false result.

Runtime helpers

The following runtime helpers are referenced:

  • __rt_fileatime
  • __rt_filectime
  • __rt_fileperms
  • __rt_readlink

Signature summary

function readlink(string $path): mixed

What the type checker enforces

  • Arity: takes exactly 1 argument.

Eval interpreter (magician)

Cross-references