← All docs
simplexml_load_file() - internals
Compiler internals for simplexml_load_file(): lowering path, type checks, and runtime helpers.
simplexml_load_file() - internals
Where it lives
- Signature:
crates/elephc-builtin-contract/src/catalog_xml.rs - Lowering:
src/simplexml_prelude/generated.rs(simplexml_load_file) - Function symbol:
simplexml_load_file()
Lowering notes
- Implemented by the compiler-injected xml 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 simplexml_load_file(string $filename, ?string $class_name = 'SimpleXMLElement', int $options = 0, string $namespace_or_prefix = '', bool $is_prefix = false): SimpleXMLElement|false
What the type checker enforces
- Arity: takes 1–5 arguments (4 optional).
Eval interpreter (magician)
- Declaration:
crates/elephc-magician/src/interpreter/builtins/xml/simplexml_load_file.rs(eval_builtin!) - Execution: Magician interpreter adapter.
- Adapter reason:
dynamic-language-surface. - Dispatch hooks:
direct,values