/PHP-8.1/ext/pgsql/ |
H A D | pgsql.c | 2825 zend_long result, offset = 0, whence = SEEK_CUR; in PHP_FUNCTION() local 2828 …if (zend_parse_parameters(ZEND_NUM_ARGS(), "Ol|l", &pgsql_id, pgsql_lob_ce, &offset, &whence) == F… in PHP_FUNCTION() 2831 if (whence != SEEK_SET && whence != SEEK_CUR && whence != SEEK_END) { in PHP_FUNCTION() 2841 result = lo_lseek64((PGconn *)pgsql->conn, pgsql->lofd, offset, (int)whence); in PHP_FUNCTION() 2843 result = lo_lseek((PGconn *)pgsql->conn, pgsql->lofd, (int)offset, (int)whence); in PHP_FUNCTION() 2846 result = lo_lseek((PGconn *)pgsql->conn, pgsql->lofd, offset, whence); in PHP_FUNCTION()
|
/PHP-8.1/main/ |
H A D | php_streams.h | 124 int (*seek)(php_stream *stream, zend_off_t offset, int whence, zend_off_t *newoffset); 304 PHPAPI int _php_stream_seek(php_stream *stream, zend_off_t offset, int whence); 306 #define php_stream_seek(stream, offset, whence) _php_stream_seek((stream), (offset), (whence)) argument
|
/PHP-8.1/main/streams/ |
H A D | streams.c | 1291 PHPAPI int _php_stream_seek(php_stream *stream, zend_off_t offset, int whence) in _php_stream_seek() argument 1305 switch(whence) { in _php_stream_seek() 1334 switch(whence) { in _php_stream_seek() 1337 whence = SEEK_SET; in _php_stream_seek() 1340 ret = stream->ops->seek(stream, offset, whence, &stream->position); in _php_stream_seek() 1357 if (whence == SEEK_CUR && offset >= 0) { in _php_stream_seek()
|
H A D | cast.c | 73 static PHP_FPOS_T stream_cookie_seeker(void *cookie, zend_off_t position, int whence) in stream_cookie_seeker() argument 76 return (PHP_FPOS_T)php_stream_seek((php_stream *)cookie, position, whence); in stream_cookie_seeker() 104 static int stream_cookie_seeker(void *cookie, off64_t *position, int whence) in stream_cookie_seeker() argument 107 *position = php_stream_seek((php_stream *)cookie, (zend_off_t)*position, whence); in stream_cookie_seeker() 115 static int stream_cookie_seeker(void *cookie, zend_off_t position, int whence) in stream_cookie_seeker() argument 118 return php_stream_seek((php_stream *)cookie, position, whence); in stream_cookie_seeker()
|
H A D | memory.c | 114 static int php_stream_memory_seek(php_stream *stream, zend_off_t offset, int whence, zend_off_t *ne… in php_stream_memory_seek() argument 119 switch(whence) { in php_stream_memory_seek() 430 static int php_stream_temp_seek(php_stream *stream, zend_off_t offset, int whence, zend_off_t *newo… in php_stream_temp_seek() argument 441 ret = php_stream_seek(ts->innerstream, offset, whence); in php_stream_temp_seek()
|
H A D | plain_wrapper.c | 570 static int php_stdiop_seek(php_stream *stream, zend_off_t offset, int whence, zend_off_t *newoffset) in php_stdiop_seek() argument 585 result = zend_lseek(data->fd, offset, whence); in php_stdiop_seek() 593 ret = zend_fseek(data->file, offset, whence); in php_stdiop_seek() 1038 static int php_plain_files_dirstream_rewind(php_stream *stream, zend_off_t offset, int whence, zend… in php_plain_files_dirstream_rewind() argument
|
H A D | userspace.c | 753 static int php_userstreamop_seek(php_stream *stream, zend_off_t offset, int whence, zend_off_t *new… in php_userstreamop_seek() argument 766 ZVAL_LONG(&args[1], whence); in php_userstreamop_seek() 1440 static int php_userstreamop_rewinddir(php_stream *stream, zend_off_t offset, int whence, zend_off_t… in php_userstreamop_rewinddir() argument
|
/PHP-8.1/ext/standard/tests/image/ |
H A D | bug75708.phpt | 17 function stream_seek($offset, $whence) { 18 return fseek($this->handle, $offset, $whence) === 0;
|
/PHP-8.1/build/ |
H A D | php.m4 | 1461 int seeker(void *cookie, off64_t *position, int whence)
|
/PHP-8.1/ext/sqlite3/ |
H A D | sqlite3.c | 1144 static int php_sqlite3_stream_seek(php_stream *stream, zend_off_t offset, int whence, zend_off_t *n… in php_sqlite3_stream_seek() argument 1148 switch(whence) { in php_sqlite3_stream_seek()
|
/PHP-8.1/ext/standard/ |
H A D | file.c | 1238 zend_long offset, whence = SEEK_SET; in PHP_FUNCTION() local 1245 Z_PARAM_LONG(whence) in PHP_FUNCTION() 1250 RETURN_LONG(php_stream_seek(stream, offset, (int) whence)); in PHP_FUNCTION()
|
H A D | basic_functions_arginfo.h | 1263 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, whence, IS_LONG, 0, "SEEK_SET")
|
H A D | basic_functions.stub.php | 1097 function fseek($stream, int $offset, int $whence = SEEK_SET): int {} argument
|
/PHP-8.1/ext/phar/ |
H A D | dirstream.c | 58 static int phar_dir_seek(php_stream *stream, zend_off_t offset, int whence, zend_off_t *newoffset) … in phar_dir_seek() argument 66 if (whence == SEEK_END) { in phar_dir_seek() 67 whence = SEEK_SET; in phar_dir_seek() 71 if (whence == SEEK_SET) { in phar_dir_seek()
|
H A D | util.c | 116 int phar_seek_efp(phar_entry_info *entry, zend_off_t offset, int whence, zend_off_t position, int f… in phar_seek_efp() argument 139 switch (whence) { in phar_seek_efp()
|
H A D | phar.c | 866 zend_off_t whence; in phar_parse_pharfile() local 882 whence = signature_len + 4; in phar_parse_pharfile() 883 whence = -whence; in phar_parse_pharfile() 885 if (-1 == php_stream_seek(fp, whence, SEEK_CUR) in phar_parse_pharfile()
|
/PHP-8.1/ext/spl/ |
H A D | spl_directory.c | 2521 zend_long pos, whence = SEEK_SET; in PHP_METHOD() local 2523 if (zend_parse_parameters(ZEND_NUM_ARGS(), "l|l", &pos, &whence) == FAILURE) { in PHP_METHOD() 2530 RETURN_LONG(php_stream_seek(intern->u.file.stream, pos, (int)whence)); in PHP_METHOD()
|
H A D | spl_directory_arginfo.h | 217 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, whence, IS_LONG, 0, "SEEK_SET")
|
H A D | spl_directory.stub.php | 240 public function fseek(int $offset, int $whence = SEEK_SET): int {} argument
|
/PHP-8.1/ext/exif/tests/ |
H A D | gh10834.phpt | 26 function stream_seek($offset, $whence) { 27 switch ($whence) {
|
/PHP-8.1/ext/pdo_oci/ |
H A D | oci_statement.c | 701 static int oci_blob_seek(php_stream *stream, zend_off_t offset, int whence, zend_off_t *newoffset) in oci_blob_seek() argument
|
/PHP-8.1/Zend/tests/ |
H A D | gh10072.phpt | 41 public function stream_seek(int $offset, int $whence = SEEK_SET): bool
|
/PHP-8.1/ext/pdo_pgsql/ |
H A D | pgsql_driver.c | 161 static int pgsql_lob_seek(php_stream *stream, zend_off_t offset, int whence, in pgsql_lob_seek() argument 166 zend_off_t pos = lo_lseek64(self->conn, self->lfd, offset, whence); in pgsql_lob_seek() 168 zend_off_t pos = lo_lseek(self->conn, self->lfd, offset, whence); in pgsql_lob_seek()
|
/PHP-8.1/ext/zlib/ |
H A D | zlib_fopen_wrapper.c | 54 static int php_gziop_seek(php_stream *stream, zend_off_t offset, int whence, zend_off_t *newoffs) in php_gziop_seek() argument 60 if (whence == SEEK_END) { in php_gziop_seek() 64 *newoffs = gzseek(self->gz_file, offset, whence); in php_gziop_seek()
|
/PHP-8.1/ext/standard/tests/file/ |
H A D | fopencookie.phpt | 45 function stream_seek($offset, $whence) 47 switch($whence) {
|