← All docs
tidy_getopt() - internals
Compiler internals for tidy_getopt(): lowering path, type checks, and runtime helpers.
tidy_getopt() - internals
Where it lives
- Signature:
crates/elephc-builtin-contract/src/catalog_tidy.rs - Lowering:
src/tidy_prelude/build/functions.rs(tidy_getopt) - Function symbol:
tidy_getopt()
Lowering notes
- Implemented by the compiler-injected tidy 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 tidy_getopt(mixed $tidy, string $option): string|int|bool
What the type checker enforces
- Arity: takes exactly 2 arguments.
Eval interpreter (magician)
- Declaration:
crates/elephc-magician/src/interpreter/builtins/tidy/tidy_getopt.rs(eval_builtin!) - Execution: Magician interpreter adapter.
- Adapter reason:
dynamic-language-surface. - Dispatch hooks:
direct,values