public function streamRead($count) { $ret = substr(self::$data[$this->path], self::$position[$this->path], $count); self::$position[$this->path] += strlen($ret); return $ret; }