Home
last modified time | relevance | path

Searched refs:fseek (Results 1 – 25 of 140) sorted by relevance

123456

/php-src/ext/phar/tests/
H A D022.phpt24 echo 'fseek($fp, 1)';var_dump(fseek($fp, 1));
26 echo 'fseek($fp, 1, SEEK_CUR)';var_dump(fseek($fp, 1, SEEK_CUR));
28 echo 'fseek($fp, -1, SEEK_CUR)';var_dump(fseek($fp, -1, SEEK_CUR));
36 echo 'fseek($fp, 0, SEEK_END)';var_dump(fseek($fp, 0, SEEK_END));
42 echo 'fseek($fp, 6)';var_dump(fseek($fp, 6));
44 echo 'fseek($fp, 8)';var_dump(fseek($fp, 8));
46 echo 'fseek($fp, -1)';var_dump(fseek($fp, -1));
49 fseek($fp, 4);
53 fseek($fp, 4);
57 fseek($fp, 4);
[all …]
H A Dbug70091.phpt18 fseek($stream, 53);
22 fseek($stream, 104);
26 fseek($stream, 173);
/php-src/ext/standard/tests/file/
H A Dfseek_ftell_rewind_basic1.phpt60 -- Testing fseek() with whence = SEEK_SET --
64 -- Testing fseek() with whence = SEEK_CUR --
68 -- Testing fseek() with whence = SEEK_END --
76 -- Testing fseek() with whence = SEEK_SET --
80 -- Testing fseek() with whence = SEEK_CUR --
84 -- Testing fseek() with whence = SEEK_END --
92 -- Testing fseek() with whence = SEEK_SET --
96 -- Testing fseek() with whence = SEEK_CUR --
100 -- Testing fseek() with whence = SEEK_END --
108 -- Testing fseek() with whence = SEEK_SET --
[all …]
H A Dfseek_ftell_rewind_basic2-win32-mb.phpt70 -- Testing fseek() with whence = SEEK_SET --
74 -- Testing fseek() with whence = SEEK_CUR --
78 -- Testing fseek() with whence = SEEK_END --
86 -- Testing fseek() with whence = SEEK_SET --
90 -- Testing fseek() with whence = SEEK_CUR --
94 -- Testing fseek() with whence = SEEK_END --
102 -- Testing fseek() with whence = SEEK_SET --
106 -- Testing fseek() with whence = SEEK_CUR --
110 -- Testing fseek() with whence = SEEK_END --
118 -- Testing fseek() with whence = SEEK_SET --
[all …]
H A Dfseek_ftell_rewind_basic2-win32.phpt70 -- Testing fseek() with whence = SEEK_SET --
74 -- Testing fseek() with whence = SEEK_CUR --
78 -- Testing fseek() with whence = SEEK_END --
86 -- Testing fseek() with whence = SEEK_SET --
90 -- Testing fseek() with whence = SEEK_CUR --
94 -- Testing fseek() with whence = SEEK_END --
102 -- Testing fseek() with whence = SEEK_SET --
106 -- Testing fseek() with whence = SEEK_CUR --
110 -- Testing fseek() with whence = SEEK_END --
118 -- Testing fseek() with whence = SEEK_SET --
[all …]
H A Dfseek_ftell_rewind_basic2.phpt70 -- Testing fseek() with whence = SEEK_SET --
74 -- Testing fseek() with whence = SEEK_CUR --
78 -- Testing fseek() with whence = SEEK_END --
86 -- Testing fseek() with whence = SEEK_SET --
90 -- Testing fseek() with whence = SEEK_CUR --
94 -- Testing fseek() with whence = SEEK_END --
102 -- Testing fseek() with whence = SEEK_SET --
106 -- Testing fseek() with whence = SEEK_CUR --
110 -- Testing fseek() with whence = SEEK_END --
118 -- Testing fseek() with whence = SEEK_SET --
[all …]
H A Dfseek_ftell_rewind_error1.phpt2 Test fseek(), ftell() & rewind() functions : error conditions - fseek()
6 echo "*** Testing fseek() : error conditions ***\n";
8 // fseek() on a file handle which is already closed
9 echo "-- Testing fseek() with closed/unset file handle --\n";
13 var_dump(fseek($fp,10));
21 *** Testing fseek() : error conditions ***
22 -- Testing fseek() with closed/unset file handle --
23 fseek(): supplied resource is not a valid stream resource
H A Dfseek_variation3.phpt2 Test fseek() function : variation functionality beyond file boundaries
16 echo "--- fseek beyond start of file ---\n";
17 var_dump(fseek($h, -4, SEEK_SET));
19 var_dump(fseek($h, -1, SEEK_CUR));
21 var_dump(fseek($h, -20, SEEK_CUR));
24 echo "--- fseek beyond end of file ---\n";
25 var_dump(fseek($h, 16, SEEK_SET));
27 fseek($h ,0, SEEK_SET);
37 *** Testing fseek() : variation - beyond file boundaries ***
38 --- fseek beyond start of file ---
[all …]
H A Dfgets_variation4-win32-mb.phpt40 var_dump( fseek($file_handle, 5, SEEK_SET) );
47 var_dump( fseek($file_handle, 25, SEEK_SET) );
74 -- fgets() with location set by fseek() with length = 20 --
87 -- fgets() with location set by fseek() with length = 20 --
101 -- fgets() with location set by fseek() with length = 20 --
115 -- fgets() with location set by fseek() with length = 20 --
130 -- fgets() with location set by fseek() with length = 20 --
143 -- fgets() with location set by fseek() with length = 20 --
157 -- fgets() with location set by fseek() with length = 20 --
171 -- fgets() with location set by fseek() with length = 20 --
[all …]
H A Dfgets_variation4-win32.phpt40 var_dump( fseek($file_handle, 5, SEEK_SET) );
47 var_dump( fseek($file_handle, 25, SEEK_SET) );
74 -- fgets() with location set by fseek() with length = 20 --
87 -- fgets() with location set by fseek() with length = 20 --
101 -- fgets() with location set by fseek() with length = 20 --
115 -- fgets() with location set by fseek() with length = 20 --
130 -- fgets() with location set by fseek() with length = 20 --
143 -- fgets() with location set by fseek() with length = 20 --
157 -- fgets() with location set by fseek() with length = 20 --
171 -- fgets() with location set by fseek() with length = 20 --
[all …]
H A Dfgets_variation4.phpt40 var_dump( fseek($file_handle, 5, SEEK_SET) );
47 var_dump( fseek($file_handle, 25, SEEK_SET) );
74 -- fgets() with location set by fseek() with length = 20 --
87 -- fgets() with location set by fseek() with length = 20 --
101 -- fgets() with location set by fseek() with length = 20 --
115 -- fgets() with location set by fseek() with length = 20 --
130 -- fgets() with location set by fseek() with length = 20 --
143 -- fgets() with location set by fseek() with length = 20 --
157 -- fgets() with location set by fseek() with length = 20 --
171 -- fgets() with location set by fseek() with length = 20 --
[all …]
H A Dfseek_ftell_rewind_variation1.phpt8 /* Testing fseek(),ftell(),rewind() functions
10 2. Testing fseek() without using argument whence
37 var_dump( fseek($file_handle, $count) );
57 -- Testing fseek() without using argument whence --
72 -- Testing fseek() without using argument whence --
87 -- Testing fseek() without using argument whence --
102 -- Testing fseek() without using argument whence --
117 -- Testing fseek() without using argument whence --
132 -- Testing fseek() without using argument whence --
147 -- Testing fseek() without using argument whence --
[all …]
H A Dfseek_ftell_rewind_variation2-win32.phpt13 /* Testing fseek(),ftell(),rewind() functions
15 2. Testing fseek() without using argument whence
46 var_dump( fseek($file_handle,$count) );
66 -- Testing fseek() without using argument whence --
81 -- Testing fseek() without using argument whence --
96 -- Testing fseek() without using argument whence --
111 -- Testing fseek() without using argument whence --
126 -- Testing fseek() without using argument whence --
141 -- Testing fseek() without using argument whence --
156 -- Testing fseek() without using argument whence --
[all …]
H A Dfseek_ftell_rewind_variation2.phpt13 /* Testing fseek(),ftell(),rewind() functions
15 2. Testing fseek() without using argument whence
46 var_dump( fseek($file_handle,$count) );
66 -- Testing fseek() without using argument whence --
81 -- Testing fseek() without using argument whence --
96 -- Testing fseek() without using argument whence --
111 -- Testing fseek() without using argument whence --
126 -- Testing fseek() without using argument whence --
141 -- Testing fseek() without using argument whence --
156 -- Testing fseek() without using argument whence --
[all …]
H A Dbug52335.phpt2 Bug #52335 (fseek() on memory stream behavior different then file)
8 var_dump(fseek($fpr, 20));
14 var_dump(fseek($fpr, 24));
22 var_dump(fseek($fprw, 20, SEEK_END));
28 var_dump(fseek($fprw, 20));
33 var_dump(fseek($fprw, 16, SEEK_CUR));
35 var_dump(fseek($fprw, 0));
H A Dstream_rfc2397_007.phpt21 var_dump(fseek($fp, 4));
42 var_dump(fseek($fp, 3, SEEK_SET));
46 var_dump(fseek($fp, 1, SEEK_CUR));
50 var_dump(fseek($fp, -2, SEEK_CUR));
54 var_dump(fseek($fp, -10, SEEK_CUR));
58 var_dump(fseek($fp, 3, SEEK_SET));
62 var_dump(fseek($fp, 10, SEEK_CUR));
66 var_dump(fseek($fp, -1, SEEK_END));
70 var_dump(fseek($fp, 0, SEEK_END));
74 var_dump(fseek($fp, 1, SEEK_END));
H A Dfseek_dir_basic.phpt2 Testing fseek() on a directory stream
21 echo "\ncall fseek() on directory resource:\n";
22 var_dump(fseek($dh, 20));
30 echo "\ncall fseek() with different arguments on directory resource:\n";
31 var_dump(fseek($dh, 20, SEEK_END));
61 call fseek() on directory resource:
79 call fseek() with different arguments on directory resource:
H A Dfpassthru_basic.phpt23 fseek($read_handle, 0);
27 fseek($read_handle, 3);
31 fseek($read_handle, 13);
35 fseek($read_handle, 14);
39 fseek($read_handle, 23);
43 fseek($read_handle, 34);
47 fseek($read_handle, 1000);
H A Dfread_fwrite_basic.phpt20 fseek($h, 0, SEEK_SET);
25 fseek($h, -4, SEEK_CUR);
27 fseek($h, 0, SEEK_SET);
42 fseek($h, -strlen($out) + 1, SEEK_CUR);
H A Dbug45303.phpt7 var_dump(fseek($fd, 1024*1024, SEEK_SET));
12 Warning: fseek(): Stream does not support seeking in %s
/php-src/tests/basic/
H A Denable_post_data_reading_07.phpt13 fseek($f1, 3, SEEK_SET);
15 fseek($f1, 1, SEEK_SET);
17 fseek($f1, 3, SEEK_CUR);
19 fseek($f1, -3, SEEK_CUR);
21 fseek($f1, 3, SEEK_END);
23 fseek($f1, -3, SEEK_END);
25 fseek($f2, 1, SEEK_SET);
/php-src/ext/zip/tests/
H A Doo_stream_seek.phpt22 var_dump(fseek($fp, 1, SEEK_SET));
25 var_dump(fseek($fp, 0, SEEK_SET));
36 var_dump(fseek($fp, 2, SEEK_SET));
47 var_dump(fseek($fp, 1, SEEK_SET));
50 var_dump(fseek($fp, 0, SEEK_SET));
69 Warning: fseek(): %s does not support seeking in %s
/php-src/ext/standard/tests/streams/
H A Dtemp_stream_seek.phpt8 fseek($f, 0, SEEK_SET);
11 fseek($f, 0, SEEK_SET);
14 fseek($f, 0, SEEK_END);
H A Dbug48309.phpt8 fseek($tmp, 0, SEEK_SET);
12 fseek($tmp, 0, SEEK_SET);
20 fseek($tmp, 0, SEEK_SET);
H A Dstream_copy_to_stream_socket.phpt18 fseek($tmp, 0, SEEK_SET);
23 fseek($tmp, 0, SEEK_SET);

Completed in 97 milliseconds

123456