← All docs
putenv() — internals
Compiler internals for putenv(): lowering path, type checks, and runtime helpers.
putenv() — internals
Where it lives
- Signature:
src/builtins/system/putenv.rs - Lowering:
src/codegen/lower_inst/builtins/system.rs:657 (lower_putenv) - Function symbol:
lower_putenv()
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)
- Declaration:
crates/elephc-magician/src/interpreter/builtins/network_env/putenv.rs(eval_builtin!) - Dispatch hooks:
direct,values