← All docs

fseek() — internals

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

fseek() — internals

Where it lives

Lowering notes

  • Lowers fseek(stream, offset, whence?) and clears EOF state on success.

Runtime helpers

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

Signature summary

function fseek(resource $stream, int $offset, int $whence = 0): int

What the type checker enforces

  • Arity: takes 2–3 arguments (1 optional).

Eval interpreter (magician)

Cross-references