← All docs
mb_preferred_mime_name() - internals
Compiler internals for mb_preferred_mime_name(): lowering path, type checks, and runtime helpers.
mb_preferred_mime_name() - internals
Where it lives
- Signature:
src/builtins/string/mb_preferred_mime_name.rs - Lowering:
src/builtins/semantics.rs:704 (lower_registry_call) - Function symbol:
lower_registry_call()
Lowering notes
- Uses the
runtime_callstrategy from the single-source builtin descriptor. - Emits the typed EIR target
runtime.mb_preferred_mime_namethroughBuiltinLoweringContext. - The backend resolves that typed target through
src/codegen/lower_inst/runtime_calls.rs; PHP builtin names do not participate in dispatch.
Semantic descriptor
- Target strategy:
runtime_call - Validation:
checker_hook - Result type source:
checked - Result ownership:
fresh - Effects:
static (17 declared effects) - Requirements:
static (1 requirements) - Callable policy:
dynamic_target - Target support:
macos-aarch64,ios-arm64,ios-sim-arm64,linux-aarch64,linux-x86_64
EIR and runtime boundary
- Typed EIR target:
runtime.mb_preferred_mime_name - Backend boundary:
src/codegen/lower_inst/runtime_calls.rsresolves the typed target without PHP-name dispatch.
Signature summary
function mb_preferred_mime_name(string $encoding): string|false
What the type checker enforces
- Arity: takes exactly 1 argument.
Eval interpreter (magician)
- Declaration:
crates/elephc-magician/src/interpreter/builtins/string/mb_preferred_mime_name.rs(eval_builtin!) - Execution: shared generated-runtime ABI (
RuntimeBuiltinId(54)). - Dispatch hooks: none (shared runtime dispatch)