← All docs
stream_socket_recvfrom() — internals
Compiler internals for stream_socket_recvfrom(): lowering path, type checks, and runtime helpers.
stream_socket_recvfrom() — internals
Where it lives
- Signature:
src/builtins/io/stream_socket_recvfrom.rs - Lowering:
src/builtins/semantics.rs:639 (lower_registry_call) - Function symbol:
lower_registry_call()
Lowering notes
- Uses the
runtime_callstrategy from the single-source builtin descriptor. - Emits the typed EIR target
runtime.stream_socket_recvfromthroughBuiltinLoweringContext. - The backend resolves that typed target through
src/codegen/lower_inst/runtime_calls.rs; PHP builtin names do not participate in dispatch.
Semantic descriptor
- Target strategy:
runtime_call - Validation:
checker_hook - Result type source:
checked - Result ownership:
may_alias_arguments - Effects:
static (16 declared effects) - Requirements:
static (0 requirements) - Callable policy:
static_only - Target support:
macos-aarch64,ios-arm64,ios-sim-arm64,linux-aarch64,linux-x86_64
EIR and runtime boundary
- Typed EIR target:
runtime.stream_socket_recvfrom - Backend boundary:
src/codegen/lower_inst/runtime_calls.rsresolves the typed target without PHP-name dispatch.
Signature summary
function stream_socket_recvfrom(resource $socket, int $length, int $flags = 0, string $address = ''): mixed
What the type checker enforces
- Arity: takes 2–4 arguments (2 optional).
- By-reference parameters:
$address.
Eval interpreter (magician)
- Declaration:
crates/elephc-magician/src/interpreter/builtins/filesystem/stream_socket_recvfrom.rs(eval_builtin!) - Execution: Magician interpreter adapter.
- Adapter reason:
by-reference-or-lvalue. - Dispatch hooks:
values - By-reference parameters:
$address.