Lines Matching refs:return

97         return $result;
101 * Read the contents of a TAR archive and return each entry using yield
153 * @return FileInfo[]
221 return $extracted;
362 return;
404 return gzencode($this->memory, $this->complevel);
407 return bzcompress($this->memory);
409 return $this->memory;
437 * @return string
442 return @gzread($this->fh, $length);
444 return @bzread($this->fh, $length);
446 return @fread($this->fh, $length);
455 * @return int number of bytes written
472 return $written;
580 * @return array|false returns false when this was a null block
590 if(trim($block) === '') return false;
608 $return['checksum'] = OctDec(trim($header['checksum']));
609 if ($return['checksum'] != $chks) {
613 $return['filename'] = trim($header['filename']);
614 $return['perm'] = OctDec(trim($header['perm']));
615 $return['uid'] = OctDec(trim($header['uid']));
616 $return['gid'] = OctDec(trim($header['gid']));
617 $return['size'] = OctDec(trim($header['size']));
618 $return['mtime'] = OctDec(trim($header['mtime']));
619 $return['typeflag'] = $header['typeflag'];
620 $return['link'] = trim($header['link']);
621 $return['uname'] = trim($header['uname']);
622 $return['gname'] = trim($header['gname']);
626 $return['filename'] = trim($header['prefix']).'/'.$return['filename'];
630 if ($return['typeflag'] == 'L') {
632 $filename = trim($this->readbytes(ceil($return['size'] / 512) * 512));
635 $return = $this->parseHeader($block);
637 $return['filename'] = $filename;
640 return $return;
647 * @return FileInfo
662 return $fileinfo;
690 * @return int
697 if(!$fh) return false;
701 if(strpos($magic, "\x42\x5a") === 0) return Archive::COMPRESS_BZIP;
702 if(strpos($magic, "\x1f\x8b") === 0) return Archive::COMPRESS_GZIP;
708 return Archive::COMPRESS_GZIP;
710 return Archive::COMPRESS_BZIP;
713 return Archive::COMPRESS_NONE;