← All docs
xmlwriter_start_document() — internals
Compiler internals for xmlwriter_start_document(): lowering path, type checks, and runtime helpers.
xmlwriter_start_document() — internals
Where it lives
- Signature:
crates/elephc-builtin-contract/src/catalog_xml.rs - Lowering:
src/xml_prelude/build/writer.rs:1264 (xmlwriter_start_document) - Function symbol:
xmlwriter_start_document()
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 xmlwriter_start_document(mixed $writer, ?string $version = '1.0', ?string $encoding = null, ?string $standalone = null): bool
What the type checker enforces
- Arity: takes 1–4 arguments (3 optional).
Eval interpreter (magician)
- Declaration:
crates/elephc-magician/src/interpreter/builtins/xml/xmlwriter_start_document.rs(eval_builtin!) - Execution: Magician interpreter adapter.
- Adapter reason:
dynamic-language-surface. - Dispatch hooks:
direct,values