← All docs
zval_type() — internals
Compiler internals for zval_type(): lowering path, type checks, and runtime helpers.
zval_type() — internals
Where it lives
- Signature:
src/builtins/pointers/zval_type.rs - Lowering:
src/codegen/lower_inst/builtins/pointers.rs:589 (lower_zval_type) - Function symbol:
lower_zval_type()
Lowering notes
- Lowers
zval_type(zval_ptr)by returning the PHPIS_*type byte.
Runtime helpers
The following runtime helpers are referenced:
__rt_zval_free__rt_zval_type
Signature summary
function zval_type(pointer $zval): int
What the type checker enforces
- Arity: takes exactly 1 argument.
Eval interpreter (magician)
Not callable from eval’d code — the magician interpreter has no entry for this builtin.