← All docs
stat() — internals
Compiler internals for stat(): lowering path, type checks, and runtime helpers.
stat() — internals
Where it lives
- Signature:
src/builtins/io/stat.rs - Lowering:
src/codegen/lower_inst/builtins/io.rs:5525 (lower_stat) - Function symbol:
lower_stat()
Lowering notes
- Lowers
stat(path)and boxes the runtime stat array or PHP false result.
Runtime helpers
The following runtime helpers are referenced:
__rt_fstat_array__rt_lstat_array__rt_stat_array
Signature summary
function stat(string $filename): mixed
What the type checker enforces
- Arity: takes exactly 1 argument.
Eval interpreter (magician)
- Declaration:
crates/elephc-magician/src/interpreter/builtins/filesystem/stat.rs(eval_builtin!) - Dispatch hooks:
direct,values