← All docs

fscanf() — internals

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

fscanf() — internals

Where it lives

Lowering notes

  • Lowers fscanf(stream, format) through __rt_fgets and __rt_sscanf.

Runtime helpers

The following runtime helpers are referenced:

  • __rt_fgets
  • __rt_sscanf

Signature summary

function fscanf(resource $stream, string $format, ...$vars): array

What the type checker enforces

  • Arity: takes exactly 2 arguments.
  • Variadic: collects excess arguments into $vars.

Eval interpreter (magician)

Cross-references