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