← All docs
fgetcsv() — internals
Compiler internals for fgetcsv(): lowering path, type checks, and runtime helpers.
fgetcsv() — internals
Where it lives
- Signature:
src/builtins/io/fgetcsv.rs - Lowering:
src/codegen/lower_inst/builtins/io.rs:2991 (lower_fgetcsv) - Function symbol:
lower_fgetcsv()
Lowering notes
- Lowers
fgetcsv(stream, separator?, enclosure?)through the CSV row runtime helper.
Runtime helpers
The following runtime helpers are referenced:
__rt_fgetcsv__rt_fputcsv
Signature summary
function fgetcsv(resource $stream, int $length = null, string $separator = ','): array
What the type checker enforces
- Arity: takes 1–3 arguments (2 optional).
Eval interpreter (magician)
- Declaration:
crates/elephc-magician/src/interpreter/builtins/filesystem/fgetcsv.rs(eval_builtin!) - Dispatch hooks:
direct,values