public function stream_open($path, $mode, $options, &$openedPath)
{
$mode = trim($mode, 'tb');
switch ($mode) {
case 'r':
case 'r+':
case 'w':
case 'w+':
$this->path = $path;
if (!isset(self::$dir[$this->path])) {
self::$dir[$this->path] = '';
}
$this->read = 0;
return true;
default:
return false;
}
}