Lines Matching defs:fh
23 protected $fh;
68 $this->fh = @gzopen($this->file, 'rb');
70 $this->fh = @bzopen($this->file, 'r');
72 $this->fh = @fopen($this->file, 'rb');
75 if (!$this->fh) {
267 $this->fh = 0;
276 $this->fh = @gzopen($this->file, 'wb'.$this->complevel);
278 $this->fh = @bzopen($this->file, 'w');
280 $this->fh = @fopen($this->file, 'wb');
283 if (!$this->fh) {
418 gzclose($this->fh);
420 bzclose($this->fh);
422 fclose($this->fh);
426 $this->fh = 0;
486 $ret = @gzread($this->fh, $length);
488 $ret = @bzread($this->fh, $length);
490 $ret = @fread($this->fh, $length);
509 $written = @gzwrite($this->fh, $data);
511 $written = @bzwrite($this->fh, $data);
513 $written = @fwrite($this->fh, $data);
531 @gzseek($this->fh, $bytes, SEEK_CUR);
537 @bzread($this->fh, $toread);
541 @fseek($this->fh, $bytes, SEEK_CUR);
743 $fh = @fopen($file, 'rb');
744 if(!$fh) return false;
745 $magic = fread($fh, 5);
746 fclose($fh);