← All docs
ip2long() — internals
Compiler internals for ip2long(): lowering path, type checks, and runtime helpers.
ip2long() — internals
Where it lives
- Signature:
src/builtins/string/ip2long.rs - Lowering:
src/codegen/lower_inst/builtins/strings.rs:550 (lower_ip2long) - Function symbol:
lower_ip2long()
Lowering notes
- Lowers
ip2long(string)and boxes invalid-address results as PHP false.
Runtime helpers
The following runtime helpers are referenced:
__rt_ip2long__rt_sprintf
Signature summary
function ip2long(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/ip2long.rs(eval_builtin!) - Dispatch hooks:
direct,values