/PHP-7.3/ext/standard/tests/file/ |
H A D | fpassthru_basic.phpt | 28 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 D | bug38450.phpt | 7 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 D | bug38450_1.phpt | 7 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 D | bug38450_2.phpt | 7 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 D | bug38450_3.phpt | 7 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 D | include_streams.phpt | 17 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 D | fopencookie.phpt | 21 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 D | userstreams.phpt | 89 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 D | stream_test.inc | 5 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 D | sqlite3_openblob_wrongparams.phpt | 12 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 D | seekableiterator.inc | 23 /** 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 D | limititerator.inc | 51 /** 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 D | bug38779.phpt | 7 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 D | bug38779_1.phpt | 7 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 D | bug75378.phpt | 2 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 D | formatter_parse.c | 45 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 D | zip_source_crc.c | 46 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 D | DateTime_modify_variation1.phpt | 115 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 D | date_modify_variation2.phpt | 115 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 D | DateTime_construct_variation1.phpt | 127 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 D | each_variation6.phpt | 12 * 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 D | key_exists_variation2.phpt | 19 // 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 D | each_basic.phpt | 21 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 D | bug48791.phpt | 13 …position-and-space-mode="label-alignment"><style:list-level-label-alignment text:label-followed-by…
|
/PHP-7.3/main/streams/ |
H A D | cast.c | 75 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()
|