← All docs

ptr_read_string() — internals

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

ptr_read_string() — internals

Where it lives

Lowering notes

  • Lowers ptr_read_string(pointer, length) by copying raw bytes into an owned PHP string.

Runtime helpers

The following runtime helpers are referenced:

  • __rt_ptr_read_string

Signature summary

function ptr_read_string(pointer $pointer, int $length): string

What the type checker enforces

  • Arity: takes exactly 2 arguments.

Eval interpreter (magician)

Cross-references