← All docs
spl_autoload() — internals
Compiler internals for spl_autoload(): lowering path, type checks, and runtime helpers.
spl_autoload() — internals
Where it lives
- Signature:
src/builtins/spl/spl_autoload.rs - Lowering:
src/codegen/lower_inst/builtins/spl.rs:151 (lower_spl_autoload_void) - Function symbol:
lower_spl_autoload_void()
Lowering notes
- Lowers no-op autoload calls by preserving arg effects and returning PHP null if used.
Runtime helpers
No direct __rt_* helpers captured — the lowering is inlined or routes through another builtin.
Signature summary
function spl_autoload(string $class, string $file_extensions = null): void
What the type checker enforces
- Arity: takes 1–2 arguments (1 optional).
Eval interpreter (magician)
- Declaration:
crates/elephc-magician/src/interpreter/builtins/symbols/spl_autoload.rs(eval_builtin!) - Dispatch hooks:
direct,values