← All docs

stream_copy_to_stream() — internals

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

stream_copy_to_stream() — internals

Where it lives

Lowering notes

  • Lowers stream_copy_to_stream(from, to, length?, offset?) through wrapper-aware read/write loops.

Runtime helpers

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

Signature summary

function stream_copy_to_stream(resource $from, resource $to, int $length = null, int $offset = -1): mixed

What the type checker enforces

  • Arity: takes 2–4 arguments (2 optional).

Eval interpreter (magician)

Cross-references