Home
last modified time | relevance | path

Searched refs:ftell (Results 1 – 25 of 189) sorted by relevance

12345678

/PHP-7.4/ext/standard/tests/file/
H A Dfseek_ftell_rewind_error2.phpt2 Test fseek(), ftell() & rewind() functions : error conditions - ftell()
12 Prototype: int ftell ( resource $handle );
18 echo "-- Testing ftell() with zero argument --\n";
19 var_dump( ftell() );
24 var_dump( ftell($fp, 10) );
45 var_dump(ftell($fp));
47 // ftell on a file handle which is unset
50 var_dump( ftell(@$file_handle) );
55 *** Testing ftell() : error conditions ***
56 -- Testing ftell() with zero argument --
[all …]
H A Dstream_rfc2397_007.phpt18 var_dump(ftell($fp));
22 var_dump(ftell($fp));
26 var_dump(ftell($fp));
31 var_dump(ftell($fp));
35 var_dump(ftell($fp));
39 var_dump(ftell($fp));
43 var_dump(ftell($fp));
47 var_dump(ftell($fp));
51 var_dump(ftell($fp));
55 var_dump(ftell($fp));
[all …]
H A D007_basic.phpt48 var_dump( ftell($handle) );
54 // confirm the closure, using ftell() and feof(), expect, false
55 var_dump( ftell($handle) );
75 var_dump( ftell($handle) );
81 // confirm the closure, using ftell() and feof(), expect, false
82 var_dump( ftell($handle) );
101 Warning: ftell(): supplied resource is not a valid stream resource in %s on line %d
114 Warning: ftell(): supplied resource is not a valid stream resource in %s on line %d
127 Warning: ftell(): supplied resource is not a valid stream resource in %s on line %d
140 Warning: ftell(): supplied resource is not a valid stream resource in %s on line %d
[all …]
H A Dfgetcsv_variation23.phpt25 var_dump( ftell($fp) );
27 var_dump( ftell($fp) );
29 var_dump( ftell($fp) );
31 var_dump( ftell($fp) );
H A Duserstreams.phpt70 $n = ftell($tf);
72 if (ftell($tf) != 0)
244 $rpb = ftell($tf);
246 $rpa = ftell($tf);
250 $upb = ftell($fp);
252 $upa = ftell($fp);
258 …printf("REAL: pos=(%d,%d,%d) ret=%d line[%d]=`%s'\n", $rpb, $rpa, ftell($tf), $rr, strlen($rline),…
259 …printf("USER: pos=(%d,%d,%d) ret=%d line[%d]=`%s'\n", $upb, $upa, ftell($fp), $ur, strlen($uline),…
288 if (ftell($fp) != ftell($tf)) {
298 …echo "FGETS: FAIL\niter=$n user=$uline [pos=" . ftell($fp) . "]\nreal=$rline [pos=" . ftell($tf) .…
[all …]
H A D007_variation10.phpt33 var_dump( ftell($file_handle) ); //Initial file pointer position, expected at the beginning of the…
35 var_dump( ftell($file_handle) ); //File pointer position after read operation, expected at the end…
37 var_dump( ftell($file_handle) ); //File pointer position after write operation, expected at the en…
H A D007_variation18.phpt33 var_dump( ftell($file_handle) ); //Initial file pointer position, expected at the beginning of the…
35 var_dump( ftell($file_handle) ); //File pointer position after read operation, expected at the end…
37 var_dump( ftell($file_handle) ); //File pointer position after write operation, expected at the en…
H A D007_variation2.phpt33 var_dump( ftell($file_handle) ); //Initial file pointer position, expected at the beginning of the…
35 var_dump( ftell($file_handle) ); //File pointer position after read operation, expected at the end…
37 var_dump( ftell($file_handle) ); //File pointer position after write operation, expected at the en…
H A Dbug27508.phpt28 return ftell($this->fp);
65 echo ftell($fp) . "\n";
H A D007_variation8.phpt31 var_dump( ftell($file_handle) ); //Initial file pointer position, expected at the beginning of the…
33 var_dump( ftell($file_handle) ); //File pointer position after write operation, expected at the en…
36 var_dump( ftell($file_handle) ); //File pointer position after read operation, expected at the end…
H A Dftruncate_bug77081.phpt11 var_dump(ftell($stream));
H A D007_variation15.phpt31 var_dump( ftell($file_handle) ); //Initial file pointer position, expected at the beginning of the…
33 var_dump( ftell($file_handle) ); //File pointer position after write operation, expected at the en…
36 var_dump( ftell($file_handle) ); //File pointer position after read operation, expected at the beg…
H A D007_variation16.phpt31 var_dump( ftell($file_handle) ); //Initial file pointer position, expected at the beginning of the…
33 var_dump( ftell($file_handle) ); //File pointer position after write operation, expected at the en…
36 var_dump( ftell($file_handle) ); //File pointer position after read operation, expected at the end…
H A D007_variation23.phpt31 var_dump( ftell($file_handle) ); //Initial file pointer position, expected at the beginning of the…
33 var_dump( ftell($file_handle) ); //File pointer position after write operation, expected at the en…
36 var_dump( ftell($file_handle) ); //File pointer position after read operation, expected at the beg…
H A D007_variation24.phpt31 var_dump( ftell($file_handle) ); //Initial file pointer position, expected at the beginning of the…
33 var_dump( ftell($file_handle) ); //File pointer position after write operation, expected at the en…
36 var_dump( ftell($file_handle) ); //File pointer position after read operation, expected at the end…
H A D007_variation7.phpt31 var_dump( ftell($file_handle) ); //Initial file pointer position, expected at the beginning of the…
33 var_dump( ftell($file_handle) ); //File pointer position after write operation, expected at the en…
36 var_dump( ftell($file_handle) ); //File pointer position after read operation, expected at the beg…
H A Dfseek_ftell_rewind_variation5.phpt2 Test fseek(), ftell() & rewind() functions : usage variations - all r & a modes, SEEK_CUR
11 Prototype: int ftell ( resource $handle );
18 /* Testing fseek(),ftell(),rewind() functions
22 echo "*** Testing fseek(), ftell(), rewind() : whence = SEEK_CUR & all r and a modes ***\n";
32 /* open the file using $files_modes and perform fseek(),ftell() and rewind() on it */
48 var_dump( ftell($file_handle) ); // confirm the file pointer position
63 *** Testing fseek(), ftell(), rewind() : whence = SEEK_CUR & all r and a modes ***
H A Dfwrite_variation2-win32.phpt58 var_dump( ftell($file_handle) ); // expected : 0
60 var_dump( ftell($file_handle) ); // expected: 400
65 var_dump( ftell($file_handle)); // expected: 1024/2
67 var_dump( ftell($file_handle) );
72 var_dump( ftell($file_handle) ); // expected: 1024
75 var_dump( ftell($file_handle) );
H A Dfwrite_variation2.phpt58 var_dump( ftell($file_handle) ); // expected : 0
60 var_dump( ftell($file_handle) ); // expected: 400
65 var_dump( ftell($file_handle)); // expected: 1024/2
67 var_dump( ftell($file_handle) );
72 var_dump( ftell($file_handle) ); // expected: 1024
75 var_dump( ftell($file_handle) );
/PHP-7.4/ext/phar/tests/
H A D022.phpt23 var_dump(ftell($fp));
25 var_dump(ftell($fp));
27 var_dump(ftell($fp));
29 var_dump(ftell($fp));
31 var_dump(ftell($fp));
33 var_dump(ftell($fp));
35 var_dump(ftell($fp));
37 var_dump(ftell($fp));
39 var_dump(ftell($fp));
41 var_dump(ftell($fp));
[all …]
H A Dphar_oo_007.phpt32 var_dump($f->ftell());
37 var_dump($f->ftell());
40 var_dump($f->ftell());
42 var_dump($f->ftell());
50 var_dump($f->ftell());
/PHP-7.4/sapi/cli/tests/
H A Dstd_streams.phpt2 Testing ftell() on std streams
15 var_dump(ftell(STDIN));
16 var_dump(ftell(STDERR));
17 var_dump(ftell(fopen("php://stdin", "r")));
18 var_dump(ftell(fopen("php://stderr", "w")));
21 var_dump(ftell(STDOUT));
22 var_dump(ftell(fopen("php://stdout", "w")));
/PHP-7.4/ext/standard/tests/streams/
H A Dbug68948.phpt13 var_dump(ftell($stream));
19 var_dump(ftell($stream));
/PHP-7.4/Zend/
H A Dzend_stream.h84 # define zend_ftell ftell
92 # define zend_ftell ftell
/PHP-7.4/ext/exif/tests/
H A Dexif_read_data_streams_seek.phpt16 var_dump(ftell($fp) === 100);

Completed in 32 milliseconds

12345678