← All docs

exif_thumbnail() — internals

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

exif_thumbnail() — internals

Where it lives

Lowering notes

  • Implemented by the compiler-injected image 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 exif_thumbnail(string $filename, mixed $width = 0, mixed $height = 0, mixed $image_type = 0): mixed

What the type checker enforces

  • Arity: takes 1–4 arguments (3 optional).
  • By-reference parameters: $width, $height, $image_type.

Eval interpreter (magician)

Not callable from eval’d code — the magician interpreter has no entry for this builtin.

Cross-references