← All docs

__elephc_ptr_write_string() — internals

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

__elephc_ptr_write_string() — internals

Where it lives

Lowering notes

  • Lowers ptr_write_string(pointer, string) by copying PHP string bytes into raw memory.

Runtime helpers

The following runtime helpers are referenced:

  • __rt_ptr_write_string

Signature summary

function __elephc_ptr_write_string(mixed $pointer, mixed $string): int

What the type checker enforces

  • Arity: takes exactly 2 arguments.

Eval interpreter (magician)

Not callable from eval’d code — the magician interpreter has no entry for this builtin.

Cross-references

  • No user-facing reference — this is a compiler internal helper.