← All docs

mysqli_connect() — internals

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

mysqli_connect() — internals

Where it lives

Lowering notes

  • Implemented by the compiler-injected mysqli 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 mysqli_connect(?string $hostname = null, ?string $username = null, ?string $password = null, ?string $database = null, ?int $port = null, ?string $socket = null): mixed

What the type checker enforces

  • Arity: takes 0–6 arguments (6 optional).

Eval interpreter (magician)

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

Cross-references