Home
last modified time | relevance | path

Searched refs:position (Results 1 – 25 of 369) sorted by relevance

12345678910>>...15

/PHP-7.3/ext/standard/tests/file/
H A Dfpassthru_basic.phpt28 echo "\n-- After seeking position to 0 --\n";
32 echo "\n-- After seeking position to 3 --\n";
36 echo "\n-- After seeking position to 13 --\n";
40 echo "\n-- After seeking position to 14 --\n";
77 -- After seeking position to 0 --
86 -- After seeking position to 3 --
95 -- After seeking position to 13 --
103 -- After seeking position to 14 --
111 -- After seeking position to 23 --
119 -- After seeking position to 34 --
[all …]
H A Dbug38450.phpt7 var $position;
18 $this->position = 0;
25 $ret = substr($GLOBALS[$this->varname], $this->position, $count);
26 $this->position += strlen($ret);
32 $left = substr($GLOBALS[$this->varname], 0, $this->position);
35 $this->position += strlen($data);
41 return $this->position;
46 return $this->position >= strlen($GLOBALS[$this->varname]);
53 $this->position = $offset;
62 $this->position += $offset;
[all …]
H A Dbug38450_1.phpt7 var $position;
18 $this->position = 0;
25 $ret = substr($GLOBALS[$this->varname], $this->position, $count);
26 $this->position += strlen($ret);
32 $left = substr($GLOBALS[$this->varname], 0, $this->position);
35 $this->position += strlen($data);
41 return $this->position;
46 return $this->position >= strlen($GLOBALS[$this->varname]);
53 $this->position = $offset;
62 $this->position += $offset;
[all …]
H A Dbug38450_2.phpt7 var $position;
18 $this->position = 0;
25 $ret = substr($GLOBALS[$this->varname], $this->position, $count);
26 $this->position += strlen($ret);
32 $left = substr($GLOBALS[$this->varname], 0, $this->position);
35 $this->position += strlen($data);
41 return $this->position;
46 return $this->position >= strlen($GLOBALS[$this->varname]);
53 $this->position = $offset;
62 $this->position += $offset;
[all …]
H A Dbug38450_3.phpt7 var $position;
18 $this->position = 0;
25 $ret = substr($GLOBALS[$this->varname], $this->position, $count);
26 $this->position += strlen($ret);
32 $left = substr($GLOBALS[$this->varname], 0, $this->position);
35 $this->position += strlen($data);
41 return $this->position;
46 return $this->position >= strlen($GLOBALS[$this->varname]);
53 $this->position = $offset;
62 $this->position += $offset;
[all …]
H A Dinclude_streams.phpt17 public $position;
43 $this->position = strlen($GLOBALS[$this->varname]);
45 $this->position = 0;
52 $ret = substr($GLOBALS[$this->varname], $this->position, $count);
53 $this->position += strlen($ret);
59 return $this->position;
64 return $this->position >= strlen($GLOBALS[$this->varname]);
72 $this->position = $offset;
80 $this->position += $offset;
88 $this->position = strlen($GLOBALS[$this->varname]) + $offset;
H A Dfopencookie.phpt21 public $position = 0;
31 $ret = substr($this->data, $this->position, $count);
32 $this->position += strlen($ret);
38 return $this->position;
43 return $this->position >= strlen($this->data);
51 $this->position = $offset;
59 $this->position += $offset;
67 $this->position = strlen($this->data) + $offset;
H A Duserstreams.phpt89 public $position;
104 $this->position = 0;
112 $this->position += strlen($ret);
118 return $this->position;
131 $this->position = $offset;
139 $this->position += $offset;
209 $position = 0;
215 $position = $offset;
223 $offset -= $position;
224 $position += $offset;
[all …]
/PHP-7.3/ext/sqlite3/tests/
H A Dstream_test.inc5 private $position;
11 $this->position = 0;
17 $ret = substr(self::$string, $this->position, $count);
18 $this->position += strlen($ret);
34 return $this->position;
39 return ($this->position >= self::$string_length);
H A Dsqlite3_openblob_wrongparams.phpt12 private $position;
18 $this->position = 0;
24 $ret = substr(self::$string, $this->position, $count);
25 $this->position += strlen($ret);
41 return $this->position;
46 return ($this->position >= self::$string_length);
/PHP-7.3/ext/spl/internal/
H A Dseekableiterator.inc23 /** Seek to an absolute position
25 * \param $index position to seek to
29 * the given position. Typically this exception should be of type
34 $position = 0;
35 while($position < $index && $this->valid()) {
37 $position++;
40 throw new OutOfBoundsException('Invalid seek position');
H A Dlimititerator.inc51 /** Seek to specified position
52 * @param position offset to seek to (relative to beginning not offset
54 * @throw exception when position is invalid
56 function seek($position) {
57 if ($position < $this->offset) {
58 throw new exception('Cannot seek to '.$position.' which is below offset '.$this->offset);
60 if ($position > $this->offset + $this->count && $this->count != -1) {
64 $this->it->seek($position);
65 $this->pos = $position;
67 while($this->pos < $position && $this->it->valid()) {
[all …]
/PHP-7.3/Zend/tests/
H A Dbug38779.phpt7 private $position;
11 $this->position = 0;
15 $ret = substr($this->data, $this->position, $count);
16 $this->position += strlen($ret);
20 return $this->position >= strlen($this->data);
H A Dbug38779_1.phpt7 private $position;
11 $this->position = 0;
15 $ret = substr($this->data, $this->position, $count);
16 $this->position += strlen($ret);
20 return $this->position >= strlen($this->data);
/PHP-7.3/ext/intl/tests/
H A Dbug75378.phpt2 Bug #75378 ([REGRESSION] IntlDateFormatter::parse() does not change $position argument)
11 $position = 0;
12 $parsedDate = $formatter->parse("2017-10-12", $position);
13 var_dump($position);
/PHP-7.3/ext/intl/formatter/
H A Dformatter_parse.c45 int32_t val32, position = 0; in PHP_FUNCTION() local
72 position = (int32_t)zval_get_long( zposition ); in PHP_FUNCTION()
73 position_p = &position; in PHP_FUNCTION()
110 ZVAL_LONG(zposition, position); in PHP_FUNCTION()
136 int32_t position = 0; in PHP_FUNCTION() local
159 position = (int32_t)zval_get_long( zposition ); in PHP_FUNCTION()
160 position_p = &position; in PHP_FUNCTION()
166 ZVAL_LONG(zposition, position); in PHP_FUNCTION()
/PHP-7.3/ext/zip/lib/
H A Dzip_source_crc.c46 zip_uint64_t position; /* current reading position */ member
90 ctx->position = 0; in crc_read()
100 if (ctx->crc_position == ctx->position) { in crc_read()
102 ctx->size = ctx->position; in crc_read()
123 else if (!ctx->crc_complete && ctx->position <= ctx->crc_position) { in crc_read()
126 for (i = ctx->crc_position - ctx->position; i < (zip_uint64_t)n; i += nn) { in crc_read()
133 ctx->position += (zip_uint64_t)n; in crc_read()
190 ctx->position = (zip_uint64_t)new_position; in crc_read()
196 return (zip_int64_t)ctx->position; in crc_read()
/PHP-7.3/ext/date/tests/
H A DDateTime_modify_variation1.phpt115 Warning: DateTime::modify(): Failed to parse time string (0) at position 0 (0): Unexpected characte…
120 Warning: DateTime::modify(): Failed to parse time string (1) at position 0 (1): Unexpected characte…
180 Warning: DateTime::modify(): Failed to parse time string () at position 0 ( in %sDateTime_modify_va…
185 Warning: DateTime::modify(): Failed to parse time string () at position 0 ( in %sDateTime_modify_va…
190 Warning: DateTime::modify(): Failed to parse time string (1) at position 0 (1): Unexpected characte…
195 Warning: DateTime::modify(): Failed to parse time string () at position 0 ( in %sDateTime_modify_va…
205 Warning: DateTime::modify(): Failed to parse time string () at position 0 ( in %sDateTime_modify_va…
210 Warning: DateTime::modify(): Failed to parse time string () at position 0 ( in %sDateTime_modify_va…
215 Warning: DateTime::modify(): Failed to parse time string () at position 0 ( in %sDateTime_modify_va…
250 Warning: DateTime::modify(): Failed to parse time string () at position 0 ( in %sDateTime_modify_va…
[all …]
H A Ddate_modify_variation2.phpt115 Warning: date_modify(): Failed to parse time string (0) at position 0 (0): Unexpected character in …
120 Warning: date_modify(): Failed to parse time string (1) at position 0 (1): Unexpected character in …
180 Warning: date_modify(): Failed to parse time string () at position 0 ( in %sdate_modify_variation2.…
185 Warning: date_modify(): Failed to parse time string () at position 0 ( in %sdate_modify_variation2.…
190 Warning: date_modify(): Failed to parse time string (1) at position 0 (1): Unexpected character in …
195 Warning: date_modify(): Failed to parse time string () at position 0 ( in %sdate_modify_variation2.…
205 Warning: date_modify(): Failed to parse time string () at position 0 ( in %sdate_modify_variation2.…
210 Warning: date_modify(): Failed to parse time string () at position 0 ( in %sdate_modify_variation2.…
215 Warning: date_modify(): Failed to parse time string () at position 0 ( in %sdate_modify_variation2.…
250 Warning: date_modify(): Failed to parse time string () at position 0 ( in %sdate_modify_variation2.…
[all …]
H A DDateTime_construct_variation1.phpt127 FAILED: DateTime::__construct(): Failed to parse time string (0) at position 0 (0): Unexpected char…
128 FAILED: DateTime::__construct(): Failed to parse time string (0) at position 0 (0): Unexpected char…
131 FAILED: DateTime::__construct(): Failed to parse time string (1) at position 0 (1): Unexpected char…
132 FAILED: DateTime::__construct(): Failed to parse time string (1) at position 0 (1): Unexpected char…
135 FAILED: DateTime::__construct(): Failed to parse time string (12345) at position 4 (5): Unexpected …
136 FAILED: DateTime::__construct(): Failed to parse time string (12345) at position 4 (5): Unexpected …
161 FAILED: DateTime::__construct(): Failed to parse time string (-10.5) at position 4 (5): Unexpected …
235 FAILED: DateTime::__construct(): Failed to parse time string (1) at position 0 (1): Unexpected char…
236 FAILED: DateTime::__construct(): Failed to parse time string (1) at position 0 (1): Unexpected char…
257 FAILED: DateTime::__construct(): Failed to parse time string (1) at position 0 (1): Unexpected char…
[all …]
/PHP-7.3/ext/standard/tests/array/
H A Deach_variation6.phpt12 * Test the position of the internal array pointer after a call to each()
19 echo "\n-- Current position: --\n";
25 echo "\n-- New position: --\n";
33 -- Current position: --
50 -- New position: --
H A Dkey_exists_variation2.phpt19 // 42 has index = 0, netherless its position is the latest
28 // 'baz' has index = 0, netherless its position is the latest
40 // object has index = 0, netherless its position is the latest
44 // object has index = 0, netherless its position is the first
49 // stream resource has index = 0, netherless its position is the first
54 // stream resource has index = 0, netherless its position is the latest
H A Deach_basic.phpt21 echo "\n-- Initial position: --\n";
24 echo "\n-- End position: --\n";
48 -- Initial position: --
62 -- End position: --
/PHP-7.3/ext/phar/tests/zip/
H A Dbug48791.phpt13position-and-space-mode="label-alignment"><style:list-level-label-alignment text:label-followed-by…
/PHP-7.3/main/streams/
H A Dcast.c75 static PHP_FPOS_T stream_cookie_seeker(void *cookie, zend_off_t position, int whence) in stream_cookie_seeker() argument
78 return (PHP_FPOS_T)php_stream_seek((php_stream *)cookie, position, whence); in stream_cookie_seeker()
105 static int stream_cookie_seeker(void *cookie, __off64_t *position, int whence) in stream_cookie_seeker() argument
108 *position = php_stream_seek((php_stream *)cookie, (zend_off_t)*position, whence); in stream_cookie_seeker()
110 if (*position == -1) { in stream_cookie_seeker()
116 static int stream_cookie_seeker(void *cookie, zend_off_t position, int whence) in stream_cookie_seeker() argument
119 return php_stream_seek((php_stream *)cookie, position, whence); in stream_cookie_seeker()
200 stream->ops->seek(stream, stream->position, SEEK_SET, &dummy); in _php_stream_cast()

Completed in 28 milliseconds

12345678910>>...15