/PHP-7.1/ext/standard/tests/file/ |
H A D | fseek_ftell_rewind_basic1.phpt | 46 foreach($whence_set as $whence){ 47 echo "-- Testing fseek() with whence = $whence_string[$whence] --\n"; 51 } //end of whence loop 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 -- [all …]
|
H A D | fseek_ftell_rewind_basic2-win32-mb.phpt | 57 foreach($whence_set as $whence){ 58 echo "-- Testing fseek() with whence = $whence_string[$whence] --\n"; 62 } //end of whence loop 80 -- Testing fseek() with whence = SEEK_SET -- 84 -- Testing fseek() with whence = SEEK_CUR -- 88 -- Testing fseek() with whence = SEEK_END -- 96 -- Testing fseek() with whence = SEEK_SET -- 100 -- Testing fseek() with whence = SEEK_CUR -- 104 -- Testing fseek() with whence = SEEK_END -- 112 -- Testing fseek() with whence = SEEK_SET -- [all …]
|
H A D | fseek_ftell_rewind_basic2-win32.phpt | 57 foreach($whence_set as $whence){ 58 echo "-- Testing fseek() with whence = $whence_string[$whence] --\n"; 62 } //end of whence loop 80 -- Testing fseek() with whence = SEEK_SET -- 84 -- Testing fseek() with whence = SEEK_CUR -- 88 -- Testing fseek() with whence = SEEK_END -- 96 -- Testing fseek() with whence = SEEK_SET -- 100 -- Testing fseek() with whence = SEEK_CUR -- 104 -- Testing fseek() with whence = SEEK_END -- 112 -- Testing fseek() with whence = SEEK_SET -- [all …]
|
H A D | fseek_ftell_rewind_basic2.phpt | 57 foreach($whence_set as $whence){ 58 echo "-- Testing fseek() with whence = $whence_string[$whence] --\n"; 62 } //end of whence loop 80 -- Testing fseek() with whence = SEEK_SET -- 84 -- Testing fseek() with whence = SEEK_CUR -- 88 -- Testing fseek() with whence = SEEK_END -- 96 -- Testing fseek() with whence = SEEK_SET -- 100 -- Testing fseek() with whence = SEEK_CUR -- 104 -- Testing fseek() with whence = SEEK_END -- 112 -- Testing fseek() with whence = SEEK_SET -- [all …]
|
H A D | fseek_ftell_rewind_variation1.phpt | 20 2. Testing fseek() without using argument whence 67 -- Testing fseek() without using argument whence -- 82 -- Testing fseek() without using argument whence -- 97 -- Testing fseek() without using argument whence -- 112 -- Testing fseek() without using argument whence -- 127 -- Testing fseek() without using argument whence -- 142 -- Testing fseek() without using argument whence -- 157 -- Testing fseek() without using argument whence -- 172 -- Testing fseek() without using argument whence -- 187 -- Testing fseek() without using argument whence -- [all …]
|
H A D | fseek_ftell_rewind_variation2-win32.phpt | 25 2. Testing fseek() without using argument whence 76 -- Testing fseek() without using argument whence -- 91 -- Testing fseek() without using argument whence -- 106 -- Testing fseek() without using argument whence -- 121 -- Testing fseek() without using argument whence -- 136 -- Testing fseek() without using argument whence -- 151 -- Testing fseek() without using argument whence -- 166 -- Testing fseek() without using argument whence -- 181 -- Testing fseek() without using argument whence -- 196 -- Testing fseek() without using argument whence -- [all …]
|
H A D | fseek_ftell_rewind_variation2.phpt | 25 2. Testing fseek() without using argument whence 76 -- Testing fseek() without using argument whence -- 91 -- Testing fseek() without using argument whence -- 106 -- Testing fseek() without using argument whence -- 121 -- Testing fseek() without using argument whence -- 136 -- Testing fseek() without using argument whence -- 151 -- Testing fseek() without using argument whence -- 166 -- Testing fseek() without using argument whence -- 181 -- Testing fseek() without using argument whence -- 196 -- Testing fseek() without using argument whence -- [all …]
|
H A D | fseek_variation2.phpt | 2 Test fseek() function : usage variations - different types for whence 9 /* Prototype : proto int fseek(resource fp, int offset [, int whence]) 27 // outside of whence range 63 // loop through each element of the array for whence
|
H A D | userstreams.phpt | 126 function stream_seek($offset, $whence) 128 switch($whence) { 211 $whence = $whence_map[array_rand($whence_map, 1)]; 212 switch($whence) { 228 $seeks[] = array($whence, $offset, $position); 243 list($whence, $offset, $position) = $seekdata; 246 $rr = (int)fseek($tf, $offset, $whence); 252 $ur = (int)fseek($fp, $offset, $whence); 257 printf("\n--[%d] whence=%s offset=%d line_length=%d position_should_be=%d --\n", 258 $j, $whence_names[$whence], $offset, $line_length, $position);
|
H A D | bug27508.phpt | 39 function stream_seek($offset, $whence) 41 return fseek($this->fp, $offset, $whence) == 0 ? true : false;
|
H A D | include_userstream_001.phpt | 39 function stream_seek($offset, $whence) 41 switch($whence) {
|
H A D | include_userstream_002.phpt | 53 function stream_seek($offset, $whence) 56 return fseek($this->stream, $offset, $whence); 58 switch($whence) {
|
H A D | bug38450.phpt | 48 function stream_seek($offset, $whence) 50 switch ($whence) {
|
H A D | bug38450_1.phpt | 48 function stream_seek($offset, $whence) 50 switch ($whence) {
|
H A D | fopencookie.phpt | 46 function stream_seek($offset, $whence) 48 switch($whence) {
|
/PHP-7.1/ext/zip/lib/ |
H A D | zip_source_seek_write.c | 39 zip_source_seek_write(zip_source_t *src, zip_int64_t offset, int whence) in zip_source_seek_write() argument 43 …if (!ZIP_SOURCE_IS_OPEN_WRITING(src) || (whence != SEEK_SET && whence != SEEK_CUR && whence != SEE… in zip_source_seek_write() 49 args.whence = whence; in zip_source_seek_write()
|
H A D | zip_source_seek.c | 39 zip_source_seek(zip_source_t *src, zip_int64_t offset, int whence) in zip_source_seek() argument 46 …if (!ZIP_SOURCE_IS_OPEN_READING(src) || (whence != SEEK_SET && whence != SEEK_CUR && whence != SEE… in zip_source_seek() 52 args.whence = whence; in zip_source_seek() 68 switch (args->whence) { in zip_source_seek_compute_offset()
|
H A D | zip_source_filep.c | 86 static int _zip_fseek_u(FILE *f, zip_uint64_t offset, int whence, zip_error_t *error); 87 static int _zip_fseek(FILE *f, zip_int64_t offset, int whence, zip_error_t *error); 346 switch (args->whence) { in read_file() 398 if (_zip_fseek(ctx->fout, args->offset, args->whence, &ctx->error) < 0) { in read_file() 481 _zip_fseek_u(FILE *f, zip_uint64_t offset, int whence, zip_error_t *error) in _zip_fseek_u() argument 487 return _zip_fseek(f, (zip_int64_t)offset, whence, error); in _zip_fseek_u() 492 _zip_fseek(FILE *f, zip_int64_t offset, int whence, zip_error_t *error) in _zip_fseek() argument 498 if (fseeko(f, (off_t)offset, whence) < 0) { in _zip_fseek()
|
H A D | zip_source_win32handle.c | 45 static int _zip_seek_win32_u(void *h, zip_uint64_t offset, int whence, zip_error_t *error); 46 static int _zip_seek_win32(void *h, zip_int64_t offset, int whence, zip_error_t *error); 265 switch (args->whence) { in _win32_read_file() 322 if (_zip_seek_win32(ctx->hout, args->offset, args->whence, &ctx->error) < 0) { in _win32_read_file() 474 _zip_seek_win32_u(HANDLE h, zip_uint64_t offset, int whence, zip_error_t *error) in _zip_seek_win32_u() argument 480 return _zip_seek_win32(h, (zip_int64_t)offset, whence, error); in _zip_seek_win32_u() 485 _zip_seek_win32(HANDLE h, zip_int64_t offset, int whence, zip_error_t *error) in _zip_seek_win32() argument 490 switch (whence) { in _zip_seek_win32()
|
/PHP-7.1/ext/opcache/ |
H A D | ZendAccelerator.h | 94 # define FLOCK_STRUCTURE(name, type, whence, start, len) \ argument 95 struct flock name = {start, len, -1, type, whence} 97 # define FLOCK_STRUCTURE(name, type, whence, start, len) \ argument 98 struct flock name = {type, whence, start, len} 100 # define FLOCK_STRUCTURE(name, type, whence, start, len) \ argument 101 struct flock name = {type, whence, start, len, 0} 105 struct flock name = {type, whence, 0, 0, 0, start, len } 108 struct flock name = {type, whence, start, len} 111 # define FLOCK_STRUCTURE(name, type, whence, start, len) \ argument 112 struct flock name = {start, len, -1, type, whence} [all …]
|
/PHP-7.1/ext/zlib/tests/ |
H A D | gzseek_error.phpt | 14 $whence = SEEK_SET; 17 var_dump(gzseek( $h, $offset, $whence, $extra_arg ) );
|
/PHP-7.1/main/streams/ |
H A D | cast.c | 77 static PHP_FPOS_T stream_cookie_seeker(void *cookie, zend_off_t position, int whence) in stream_cookie_seeker() argument 80 return (PHP_FPOS_T)php_stream_seek((php_stream *)cookie, position, whence); in stream_cookie_seeker() 107 static int stream_cookie_seeker(void *cookie, __off64_t *position, int whence) in stream_cookie_seeker() argument 110 *position = php_stream_seek((php_stream *)cookie, (zend_off_t)*position, whence); in stream_cookie_seeker() 118 static int stream_cookie_seeker(void *cookie, zend_off_t position, int whence) in stream_cookie_seeker() argument 121 return php_stream_seek((php_stream *)cookie, position, whence); in stream_cookie_seeker()
|
/PHP-7.1/ext/zlib/ |
H A D | zlib_fopen_wrapper.c | 61 static int php_gziop_seek(php_stream *stream, zend_off_t offset, int whence, zend_off_t *newoffs) in php_gziop_seek() argument 67 if (whence == SEEK_END) { in php_gziop_seek() 71 *newoffs = gzseek(self->gz_file, offset, whence); in php_gziop_seek()
|
/PHP-7.1/ext/dba/ |
H A D | dba_cdb.c | 228 int cdb_file_lseek(php_stream *fp, off_t offset, int whence) { in cdb_file_lseek() argument 229 php_stream_seek(fp, offset, whence); in cdb_file_lseek() 233 int cdb_file_lseek(int fd, off_t offset, int whence) { in cdb_file_lseek() argument 234 return lseek(fd, offset, whence); in cdb_file_lseek()
|
/PHP-7.1/ext/phar/ |
H A D | dirstream.h | 34 static int phar_dir_seek( php_stream *stream, zend_off_t offset, int whence, zend_off_t *newoffs…
|