← All docs
gethostbyaddr() — internals
Compiler internals for gethostbyaddr(): lowering path, type checks, and runtime helpers.
gethostbyaddr() — internals
Where it lives
- Signature:
src/builtins/io/gethostbyaddr.rs - Lowering:
src/codegen/lower_inst/builtins/io.rs:3427 (lower_gethostbyaddr) - Function symbol:
lower_gethostbyaddr()
Lowering notes
- Lowers
gethostbyaddr(address)and boxes malformed addresses as PHPfalse.
Runtime helpers
The following runtime helpers are referenced:
__rt_gethostbyaddr__rt_getprotobyname
Signature summary
function gethostbyaddr(string $ip): mixed
What the type checker enforces
- Arity: takes exactly 1 argument.
Eval interpreter (magician)
- Declaration:
crates/elephc-magician/src/interpreter/builtins/network_env/gethostbyaddr.rs(eval_builtin!) - Dispatch hooks:
direct,values