← All docs
getservbyport() — internals
Compiler internals for getservbyport(): lowering path, type checks, and runtime helpers.
getservbyport() — internals
Where it lives
- Signature:
src/builtins/io/getservbyport.rs - Lowering:
src/codegen/lower_inst/builtins/io.rs:3513 (lower_getservbyport) - Function symbol:
lower_getservbyport()
Lowering notes
- Lowers
getservbyport(port, protocol)and boxes a missing entry as PHPfalse.
Runtime helpers
The following runtime helpers are referenced:
__rt_getservbyport
Signature summary
function getservbyport(int $port, string $protocol): mixed
What the type checker enforces
- Arity: takes exactly 2 arguments.
Eval interpreter (magician)
- Declaration:
crates/elephc-magician/src/interpreter/builtins/network_env/getservbyport.rs(eval_builtin!) - Dispatch hooks:
direct,values