← All docs
spl_autoload_register() — internals
Compiler internals for spl_autoload_register(): lowering path, type checks, and runtime helpers.
spl_autoload_register() — internals
Where it lives
- Signature:
src/builtins/spl/spl_autoload_register.rs - Lowering:
src/codegen/lower_inst/builtins/spl.rs:135 (lower_spl_autoload_bool) - Function symbol:
lower_spl_autoload_bool()
Lowering notes
- Lowers autoload registration stubs by preserving arg effects and returning true.
Runtime helpers
No direct __rt_* helpers captured — the lowering is inlined or routes through another builtin.
Signature summary
function spl_autoload_register(callable $callback = null, bool $throw = true, bool $prepend = false): bool
What the type checker enforces
- Arity: takes 0–3 arguments (3 optional).
Eval interpreter (magician)
- Declaration:
crates/elephc-magician/src/interpreter/builtins/symbols/spl_autoload_register.rs(eval_builtin!) - Dispatch hooks:
direct,values