← All docs

stream_get_contents() — internals

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

stream_get_contents() — internals

Where it lives

Lowering notes

  • Lowers stream_get_contents(stream, length?, offset?) to string|false.

Runtime helpers

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

Signature summary

function stream_get_contents(resource $stream, int $length = null, int $offset = -1): mixed

What the type checker enforces

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

Eval interpreter (magician)

Cross-references