← All docs

putenv() — internals

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

putenv() — internals

Where it lives

Lowering notes

  • Lowers putenv(assignment) by copying the environment string into persistent heap storage.

Runtime helpers

The following runtime helpers are referenced:

  • __rt_php_uname

Signature summary

function putenv(string $assignment): bool

What the type checker enforces

  • Arity: takes exactly 1 argument.

Eval interpreter (magician)

Cross-references