← All docs

fnmatch() — internals

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

fnmatch() — internals

Where it lives

Lowering notes

  • Lowers fnmatch(pattern, filename, flags?) through the target-aware runtime helper.

Runtime helpers

No direct __rt_* helpers captured — the lowering is inlined or routes through another builtin.

Signature summary

function fnmatch(string $pattern, string $filename, int $flags = 0): bool

What the type checker enforces

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

Eval interpreter (magician)

Cross-references