Lines Matching refs:tf
68 $tf = tmpfile();
69 fwrite($tf, $DATA);
70 $n = ftell($tf);
71 rewind($tf) or die("failed to rewind tmp file!");
72 if (ftell($tf) != 0)
243 rewind($tf);
248 $rpb = ftell($tf);
249 $rr = (int)fseek($tf, $offset, $whence);
250 $rpa = ftell($tf);
251 $rline = fgets($tf, $line_length);
252 (int)fseek($tf, - strlen($rline), SEEK_CUR);
262 …printf("REAL: pos=(%d,%d,%d) ret=%d line[%d]=`%s'\n", $rpb, $rpa, ftell($tf), $rr, strlen($rline),…
290 fseek($tf, $DATALEN / 2, SEEK_SET);
292 if (ftell($fp) != ftell($tf)) {
299 $rline = fgets($tf, 1024);
302 …FGETS: FAIL\niter=$n user=$uline [pos=" . ftell($fp) . "]\nreal=$rline [pos=" . ftell($tf) . "]\n";