← All docs

fwrite() — internals

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

fwrite() — internals

Where it lives

Lowering notes

  • Lowers fwrite(stream, data) and returns the number of bytes written.

Runtime helpers

The following runtime helpers are referenced:

  • __rt_fwrite

Signature summary

function fwrite(resource $stream, string $data): int

What the type checker enforces

  • Arity: takes exactly 2 arguments.

Eval interpreter (magician)

Cross-references