← All docs

iconv_mime_decode_headers() — internals

Compiler internals for iconv_mime_decode_headers(): lowering path, type checks, and runtime helpers.

iconv_mime_decode_headers() — internals

Where it lives

Lowering notes

  • Uses the runtime_call strategy from the single-source builtin descriptor.
  • Emits the typed EIR target runtime.iconv_mime_decode_headers through BuiltinLoweringContext.
  • 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 (7 declared effects)
  • Requirements: static (2 requirements)
  • Callable policy: static_only
  • Target support: macos-aarch64, ios-arm64, ios-sim-arm64, linux-aarch64, linux-x86_64

EIR and runtime boundary

  • Typed EIR target: runtime.iconv_mime_decode_headers
  • Backend boundary: src/codegen/lower_inst/runtime_calls.rs resolves the typed target without PHP-name dispatch.

Signature summary

function iconv_mime_decode_headers(string $headers, int $mode = 0, ?string $encoding = null): mixed

What the type checker enforces

  • Arity: takes 1–3 arguments (2 optional).

Eval interpreter (magician)

Cross-references