Lines Matching refs:tf
69 $tf = tmpfile();
70 fwrite($tf, (binary)$DATA);
71 $n = ftell($tf);
72 rewind($tf) or die("failed to rewind tmp file!");
73 if (ftell($tf) != 0)
240 rewind($tf);
245 $rpb = ftell($tf);
246 $rr = (int)fseek($tf, $offset, $whence);
247 $rpa = ftell($tf);
248 $rline = fgets($tf, $line_length);
249 (int)fseek($tf, - strlen($rline), SEEK_CUR);
259 …printf("REAL: pos=(%d,%d,%d) ret=%d line[%d]=`%s'\n", $rpb, $rpa, ftell($tf), $rr, strlen($rline),…
287 fseek($tf, $DATALEN / 2, SEEK_SET);
289 if (ftell($fp) != ftell($tf)) {
296 $rline = fgets($tf, 1024);
299 …echo "FGETS: FAIL\niter=$n user=$uline [pos=" . ftell($fp) . "]\nreal=$rline [pos=" . ftell($tf) .…