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