public function StreamWrapper::stream_open in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/guzzlehttp/psr7/src/StreamWrapper.php \GuzzleHttp\Psr7\StreamWrapper::stream_open()
File
- vendor/
guzzlehttp/ psr7/ src/ StreamWrapper.php, line 56
Class
- StreamWrapper
- Converts Guzzle streams into PHP stream resources.
Namespace
GuzzleHttp\Psr7Code
public function stream_open($path, $mode, $options, &$opened_path) {
$options = stream_context_get_options($this->context);
if (!isset($options['guzzle']['stream'])) {
return false;
}
$this->mode = $mode;
$this->stream = $options['guzzle']['stream'];
return true;
}