← All docs
session_name() — internals
Compiler internals for session_name(): lowering path, type checks, and runtime helpers.
session_name() — internals
Where it lives
- Signature:
crates/elephc-builtin-contract/src/catalog_data.rs - Lowering:
src/web_prelude/build.rs:2979 (session_name) - Function symbol:
session_name()
Lowering notes
- Implemented by the compiler-injected web 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 session_name(?string $name = null): mixed
What the type checker enforces
- Arity: takes 0–1 arguments (1 optional).
Eval interpreter (magician)
Not callable from eval’d code — the magician interpreter has no entry for this builtin.