← All docs
tidy_repair_file() - internals
Compiler internals for tidy_repair_file(): lowering path, type checks, and runtime helpers.
tidy_repair_file() - internals
Where it lives
- Signature:
crates/elephc-builtin-contract/src/catalog_tidy.rs - Lowering:
src/tidy_prelude/build/functions.rs(tidy_repair_file) - Function symbol:
tidy_repair_file()
Lowering notes
- Implemented by the compiler-injected tidy prelude.
Semantic descriptor
Shared contract implemented by an injected elephc-PHP prelude.
EIR and runtime boundary
Implemented by an injected elephc-PHP prelude.
Signature summary
function tidy_repair_file(string $filename, array|string|null $config = null, ?string $encoding = null, bool $useIncludePath = false): string|false
What the type checker enforces
- Arity: takes 1–4 arguments (3 optional).
Eval interpreter (magician)
- Declaration:
crates/elephc-magician/src/interpreter/builtins/tidy/tidy_repair_file.rs(eval_builtin!) - Execution: Magician interpreter adapter.
- Adapter reason:
dynamic-language-surface. - Dispatch hooks:
direct,values