← All docs

rewinddir() — internals

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

rewinddir() — internals

Where it lives

Lowering notes

  • Lowers rewinddir(dir_handle) for libc, glob, and userspace-wrapper handles.

Runtime helpers

The following runtime helpers are referenced:

  • __rt_rewinddir
  • __rt_user_wrapper_dir_rewinddir

Signature summary

function rewinddir(resource $dir_handle): void

What the type checker enforces

  • Arity: takes exactly 1 argument.

Eval interpreter (magician)

Cross-references