/php-src/ext/phar/tests/ |
H A D | 022.phpt | 24 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 D | bug70091.phpt | 18 fseek($stream, 53); 22 fseek($stream, 104); 26 fseek($stream, 173);
|
/php-src/ext/standard/tests/file/ |
H A D | fseek_ftell_rewind_basic1.phpt | 60 -- 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 D | fseek_ftell_rewind_basic2-win32-mb.phpt | 70 -- 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 D | fseek_ftell_rewind_basic2-win32.phpt | 70 -- 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 D | fseek_ftell_rewind_basic2.phpt | 70 -- 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 D | fseek_ftell_rewind_error1.phpt | 2 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 D | fseek_variation3.phpt | 2 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 D | fgets_variation4-win32-mb.phpt | 40 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 D | fgets_variation4-win32.phpt | 40 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 D | fgets_variation4.phpt | 40 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 D | fseek_ftell_rewind_variation1.phpt | 8 /* 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 D | fseek_ftell_rewind_variation2-win32.phpt | 13 /* 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 D | fseek_ftell_rewind_variation2.phpt | 13 /* 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 D | bug52335.phpt | 2 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 D | stream_rfc2397_007.phpt | 21 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 D | fseek_dir_basic.phpt | 2 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 D | fpassthru_basic.phpt | 23 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 D | fread_fwrite_basic.phpt | 20 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 D | bug45303.phpt | 7 var_dump(fseek($fd, 1024*1024, SEEK_SET)); 12 Warning: fseek(): Stream does not support seeking in %s
|
/php-src/tests/basic/ |
H A D | enable_post_data_reading_07.phpt | 13 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 D | oo_stream_seek.phpt | 22 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 D | temp_stream_seek.phpt | 8 fseek($f, 0, SEEK_SET); 11 fseek($f, 0, SEEK_SET); 14 fseek($f, 0, SEEK_END);
|
H A D | bug48309.phpt | 8 fseek($tmp, 0, SEEK_SET); 12 fseek($tmp, 0, SEEK_SET); 20 fseek($tmp, 0, SEEK_SET);
|
H A D | gh15980.phpt | 6 fseek($s, 1); 7 $seekres = fseek($s, PHP_INT_MAX, SEEK_CUR);
|