← All docs

get_resource_id() — internals

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

get_resource_id() — internals

Where it lives

Lowering notes

  • Lowers get_resource_id(resource) by unboxing the native handle and making it one-based.

Runtime helpers

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

Signature summary

function get_resource_id(resource $resource): int

What the type checker enforces

  • Arity: takes exactly 1 argument.

Eval interpreter (magician)

Cross-references