stream_context_set_option()
function stream_context_set_option(resource $context, string $wrapper_or_options, string $option_name = null, mixed $value = null): bool
Sets an option on the specified context.
Parameters:
$context(resource)$wrapper_or_options(string)$option_name(string), defaultnull, optional$value(mixed), defaultnull, optional
Returns: bool
Availability
- Compiled (AOT): supported by the Elephc code generator.
eval()(magician interpreter): supported — declarative interpreter builtin (crates/elephc-magician/src/interpreter/builtins/filesystem/stream_context_set_option.rs).
No examples yet — check examples/ and showcases/ for usage patterns.
Internals
For how stream_context_set_option is implemented in the compiler, see the internals page.