← All docs

fpassthru() — internals

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

fpassthru() — internals

Where it lives

Lowering notes

  • Lowers fpassthru(stream) through the remaining-bytes stream runtime helper.

Runtime helpers

The following runtime helpers are referenced:

  • __rt_feof
  • __rt_fpassthru

Signature summary

function fpassthru(resource $stream): int

What the type checker enforces

  • Arity: takes exactly 1 argument.

Eval interpreter (magician)

Cross-references