Lines Matching refs:handle
44 var $handle = null; variable in File_Archive_Reader_File
95 if ($this->handle !== null) {
96 fclose($this->handle);
97 $this->handle = null;
164 if ($this->handle === null) {
165 $this->handle = @fopen($this->filename, "r");
167 if (!is_resource($this->handle)) {
168 $this->handle = null;
171 if ($this->handle === false) {
172 $this->handle = null;
188 if (feof($this->handle)) {
194 while (!feof($this->handle)) {
195 $contents .= fread($this->handle, $blockSize);
202 return fread($this->handle, $length);
217 $before = ftell($this->handle);
218 if (($length == -1 && @fseek($this->handle, 0, SEEK_END) === -1) ||
219 ($length >= 0 && @fseek($this->handle, $length, SEEK_CUR) === -1)) {
222 return ftell($this->handle) - $before;
231 if ($this->handle === null) {
235 $before = ftell($this->handle);
236 if (($length == -1 && @fseek($this->handle, 0, SEEK_SET) === -1) ||
237 ($length >= 0 && @fseek($this->handle, -$length, SEEK_CUR) === -1)) {
240 return $before - ftell($this->handle);
249 if ($this->handle === null) {
252 return ftell($this->handle);