Home
last modified time | relevance | path

Searched refs:seek (Results 1 – 25 of 78) sorted by last modified time

1234

/PHP-5.5/main/streams/
H A Dstreams.c1121 …if (stream->ops->seek && (stream->flags & PHP_STREAM_FLAG_NO_SEEK) == 0 && stream->readpos != stre… in _php_stream_write_buffer()
1124 stream->ops->seek(stream, stream->position, SEEK_SET, &stream->position TSRMLS_CC); in _php_stream_write_buffer()
1143 if (stream->ops->seek && (stream->flags & PHP_STREAM_FLAG_NO_SEEK) == 0) { in _php_stream_write_buffer()
1304 if (stream->ops->seek && (stream->flags & PHP_STREAM_FLAG_NO_SEEK) == 0) { in _php_stream_seek()
1317 ret = stream->ops->seek(stream, offset, whence, &stream->position TSRMLS_CC); in _php_stream_seek()
2134 …if (stream && stream->ops->seek && (stream->flags & PHP_STREAM_FLAG_NO_SEEK) == 0 && strchr(mode, …
2138 if (0 == stream->ops->seek(stream, 0, SEEK_CUR, &newpos TSRMLS_CC)) {
H A Dcast.c208 if (stream->ops->seek && (stream->flags & PHP_STREAM_FLAG_NO_SEEK) == 0) { in _php_stream_cast()
211 stream->ops->seek(stream, stream->position, SEEK_SET, &dummy TSRMLS_CC); in _php_stream_cast()
384 if (((flags & PHP_STREAM_FORCE_CONVERSION) == 0) && origstream->ops->seek != NULL) { in _php_stream_make_seekable()
/PHP-5.5/main/
H A Dphp_streams.h126 int (*seek)(php_stream *stream, off_t offset, int whence, off_t *newoffset TSRMLS_DC); member
/PHP-5.5/ext/zlib/tests/
H A Dgzseek_basic2.phpt18 //seek forwards 20 bytes.
H A Dgzseek_variation1.phpt17 //seek forwards 20 bytes.
H A Dgzseek_variation4.phpt18 //seek forwards 20 bytes.
H A Dgzseek_variation5.phpt18 //seek forwards 20 bytes.
H A Dgzseek_variation7.phpt19 //seek to the end which is not sensible of course.
/PHP-5.5/ext/standard/tests/file/
H A Duserstreams.phpt8 * user streams and also gives the seek/gets/buffer
58 * to seek around... */
192 /* end up at BOF so that randomly generated seek offsets
208 /* generate some random seek offsets */
H A Dfseek_variation3.phpt24 echo "after -4 seek: ".bin2hex(fread($h,1))."\n";
26 echo "after seek back 1: ".bin2hex(fread($h,1))."\n";
28 echo "after seek back 20: ".bin2hex(fread($h,1))."\n";
46 after -4 seek:
48 after seek back 1: 39
50 after seek back 20:
H A Dfpassthru_basic.phpt25 echo "\n-- Before seek operation --\n";
68 -- Before seek operation --
H A Dfgets_variation6-win32.phpt45 // seek to end of the file and try fgets()
H A Dfgets_variation6.phpt45 // seek to end of the file and try fgets()
H A Dfgets_variation4-win32.phpt2 Test fgets() function : usage variations - seek n read
H A Dfgets_variation4.phpt2 Test fgets() function : usage variations - seek n read
H A Dfeof_basic.phpt53 echo "*** testing feof after a seek to near the beginning ***\n";
57 echo "*** testing feof after a seek to end ***\n";
61 echo "*** testing feof after a seek passed the end ***\n";
92 *** testing feof after a seek to near the beginning ***
94 *** testing feof after a seek to end ***
96 *** testing feof after a seek passed the end ***
H A Dfgetc_variation1.phpt32 // seek to end of the file and try fgetc()
/PHP-5.5/ext/standard/
H A Dstreamsfuncs.c535 …add_assoc_bool(return_value, "seekable", (stream->ops->seek) && (stream->flags & PHP_STREAM_FLAG_N… in PHP_FUNCTION()
/PHP-5.5/ext/spl/tests/
H A Dlimititerator_seek.phpt2 SPL: LimitIterator seek() arguments
12 $lt->seek(1,1); // Should throw a warning as seek expects only 1 argument
17 Warning: LimitIterator::seek() expects exactly 1 parameter, 2 given in %s on line %d
H A Diterator_001.phpt57 public function seek($index)
123 SeekableNumericArrayIterator::seek(1)
149 SeekableNumericArrayIterator::seek(1)
H A Diterator_004.phpt51 public function seek($index)
78 $l->seek($i);
109 SeekableNumericArrayIterator::seek(1)
127 SeekableNumericArrayIterator::seek(1)
132 SeekableNumericArrayIterator::seek(2)
137 SeekableNumericArrayIterator::seek(3)
H A Diterator_032.phpt16 $it->seek(0);
23 $it->seek(2);
28 $it->seek(3);
46 Cannot seek to 0 which is below the offset 1
48 Cannot seek to 3 which is behind offset 1 plus count 2
H A Diterator_039.phpt58 $it->seek(2);
H A Dfileobject_001.phpt2 SPL: SplFileObject::seek'ing
22 $o->seek(4);
H A Ddit_006.phpt2 SPL: DirectoryIterator and seek
6 $di->seek(2);
14 echo "With seek(2) we get $n\n";
15 $di->seek(0);
22 echo "With seek(0) we get $m\n";
31 echo "Without seek we get $o\n";
34 $di->seek($o+1);
44 With seek(2) we get %d
45 With seek(0) we get %d
46 Without seek we get %d

Completed in 70 milliseconds

1234