public function stream_open($path, $mode, $options, &$opened_path)
{
$url = parse_url($path);
$this->name = $url['host'];
$this->position = 0;
if (!isset(static::$buffers[$this->name])) {
static::$buffers[$this->name] = null;
}
return true;
}
/** * @return Buffer */ protected function buildBuffer() { $buffer = new Buffer(); $dummy = null; $buffer->stream_open('buffer://path/to/some/file', 'w', null, $dummy); return $buffer; }