← All docs

fsync() — internals

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

fsync() — internals

Where it lives

Lowering notes

  • Lowers fsync(stream) through the shared fd sync runtime helper.

Runtime helpers

The following runtime helpers are referenced:

  • __rt_fflush
  • __rt_fsync

Signature summary

function fsync(resource $stream): bool

What the type checker enforces

  • Arity: takes exactly 1 argument.

Eval interpreter (magician)

Cross-references