<?php stream_context_get_params(resource $context): array
<?php { $context = StreamContextFactory::getContext('http://example.org', $defaultOptions, $defaultParams); $options = stream_context_get_options($context); $params = stream_context_get_params($context); $this->assertEquals($expectedOptions, $options); $this->assertEquals($expectedParams, $params);
<?php public static function castStreamContext($stream, array $a, Stub $stub, bool $isNested) { return @stream_context_get_params($stream) ?: $a; } public static function castGd($gd, array $a, Stub $stub, bool $isNested)