public function stream_open($path, $mode, $options, $opened_path) { parent::stream_open($path, $mode, $options, $opened_path); $this->length = parent::$streams[$this->id]->available(); return true; }