public function compress() { $this->compressed = true; //stream_filter_append($this->fd, 'zlib.inflate', STREAM_FILTER_READ); //stream_filter_append($this->fd, 'zlib.deflate', STREAM_FILTER_WRITE); }