← All docs

stream_select() — internals

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

stream_select() — internals

Where it lives

Lowering notes

  • Lowers stream_select(read, write, except, seconds, microseconds?).

Runtime helpers

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

Signature summary

function stream_select(array $read, array $write, array $except, int $seconds, int $microseconds = 0): int

What the type checker enforces

  • Arity: takes 4–5 arguments (1 optional).
  • By-reference parameters: $read, $write, $except.

Eval interpreter (magician)

Cross-references