Home
last modified time | relevance | path

Searched refs:offset (Results 1 – 25 of 829) sorted by relevance

12345678910>>...34

/php-src/ext/standard/tests/array/
H A Darray_slice_variation5.phpt28 -- $offset is -7 --
42 -- $offset is -6 --
56 -- $offset is -5 --
70 -- $offset is -4 --
82 -- $offset is -3 --
106 -- $offset is 0 --
120 -- $offset is 1 --
132 -- $offset is 2 --
142 -- $offset is 3 --
150 -- $offset is 4 --
[all …]
/php-src/ext/mbstring/tests/
H A Dmb_stripos_empty_needle.phpt14 echo "\n-- ASCII string without offset --\n";
17 echo "\n-- ASCII string with in range positive offset --\n";
38 echo "\n-- Multi-byte string without offset --\n";
63 -- ASCII string without offset --
66 -- ASCII string with in range positive offset --
69 -- ASCII string with in range negative offset --
72 -- ASCII string with out of bound positive offset --
75 -- ASCII string with out of bound negative offset --
78 -- Multi-byte string without offset --
81 -- Multi-byte string with in range positive offset --
[all …]
H A Dmb_strpos_empty_needle.phpt14 echo "\n-- ASCII string without offset --\n";
17 echo "\n-- ASCII string with in range positive offset --\n";
37 echo "\n-- Multi-byte string without offset --\n";
62 -- ASCII string without offset --
65 -- ASCII string with in range positive offset --
68 -- ASCII string with in range negative offset --
71 -- ASCII string with out of bound positive offset --
74 -- ASCII string with out of bound negative offset --
77 -- Multi-byte string without offset --
80 -- Multi-byte string with in range positive offset --
[all …]
H A Dmb_strripos_empty_needle.phpt14 echo "\n-- ASCII string without offset --\n";
17 echo "\n-- ASCII string with in range positive offset --\n";
38 echo "\n-- Multi-byte string without offset --\n";
63 -- ASCII string without offset --
66 -- ASCII string with in range positive offset --
69 -- ASCII string with in range negative offset --
72 -- ASCII string with out of bound positive offset --
75 -- ASCII string with out of bound negative offset --
78 -- Multi-byte string without offset --
81 -- Multi-byte string with in range positive offset --
[all …]
H A Dmb_strrpos_empty_needle.phpt14 echo "\n-- ASCII string without offset --\n";
17 echo "\n-- ASCII string with in range positive offset --\n";
38 echo "\n-- Multi-byte string without offset --\n";
63 -- ASCII string without offset --
66 -- ASCII string with in range positive offset --
69 -- ASCII string with in range negative offset --
72 -- ASCII string with out of bound positive offset --
75 -- ASCII string with out of bound negative offset --
78 -- Multi-byte string without offset --
81 -- Multi-byte string with in range positive offset --
[all …]
/php-src/Zend/tests/offsets/
H A Dstring_container_offset_behaviour.phpt33 Cannot use string offset as an array
35 Cannot use string offset as an array
43 Cannot use string offset as an array
80 Cannot use string offset as an array
82 Cannot use string offset as an array
90 Cannot use string offset as an array
137 Cannot use string offset as an array
141 Cannot use string offset as an array
151 Cannot use string offset as an array
665 foreach ($offsets as $offset) {
[all …]
H A Dinternal_handlers_extended.phpt13 public function offsetSet($offset, $value): void {
15 var_dump($offset);
18 public function offsetGet($offset): mixed {
20 var_dump($offset);
23 public function offsetUnset($offset): void {
25 var_dump($offset);
27 public function offsetExists($offset): bool {
29 var_dump($offset);
45 … false, unset: false, readType: BP_VAR_R, hasOffset: true, checkEmpty: uninitialized, offset: 'foo'
46 … false, unset: false, readType: BP_VAR_R, hasOffset: true, checkEmpty: uninitialized, offset: 'foo'
/php-src/Zend/tests/
H A Dbug39018.phpt65 Warning: String offset cast occurred in %s on line %d
67 Warning: Uninitialized string offset %d in %s on line %d
69 Warning: Uninitialized string offset 0 in %s on line %d
71 Warning: Uninitialized string offset 0 in %s on line %d
73 Warning: String offset cast occurred in %s on line %d
77 Warning: String offset cast occurred in %s on line %d
81 Warning: Uninitialized string offset 0 in %s on line %d
93 Warning: String offset cast occurred in %s on line %d
97 Warning: String offset cast occurred in %s on line %d
101 Warning: String offset cast occurred in %s on line %d
[all …]
H A Dbug64417.phpt7 public function offsetSet($offset, $value): void {
8 if (is_null($offset)) {
11 $this->container[$offset] = $value;
14 public function offsetExists($offset): bool {
15 return isset($this->container[$offset]);
17 public function offsetUnset($offset): void {
18 unset($this->container[$offset]);
20 public function &offsetGet($offset): mixed {
22 if (isset($this->container[$offset])) {
23 $result = &$this->container[$offset];
H A Dbug68896.phpt7 function offsetGet($offset): mixed {
8 return $this->a[$offset];
10 function offsetSet($offset, $value): void {
11 $this->a[$offset] = $value;
13 function offsetExists($offset): bool {
14 isset($this->a[$offset]);
16 function offsetUnset($offset): void {
17 unset($this->a[$offset]);
H A Dbug32252.phpt8 function offsetExists($offset): bool
10 echo __METHOD__ . "($offset)\n";
14 function offsetGet($offset): mixed
16 echo __METHOD__ . "($offset)\n";
20 function offsetSet($offset, $value): void
22 echo __METHOD__ . "($offset, $value)\n";
26 function offsetUnset($offset): void
28 echo __METHOD__ . "($offset)\n";
H A Dbug69955.phpt7 function offsetExists($offset): bool
9 echo "\nInside " . __METHOD__ . "\n"; var_dump($offset);
11 function offsetGet($offset): mixed
13 echo "\nInside " . __METHOD__ . "\n"; var_dump($offset); return 100;
15 function offsetSet($offset, $value): void
17 echo "\nInside " . __METHOD__ . "\n"; var_dump($offset); var_dump($value);
19 function offsetUnset($offset): void
21 echo "\nInside " . __METHOD__ . "\n"; var_dump($offset);
/php-src/ext/dom/
H A Dcharacterdata.c139 count = length - offset; in PHP_METHOD()
195 unsigned int offset; in dom_character_data_insert_data() local
226 second = xmlUTF8Strsub(cur, (int)offset, length - (int)offset); in dom_character_data_insert_data()
276 …if (offset < 0 || ZEND_LONG_INT_OVFL(offset) || ZEND_LONG_INT_OVFL(count_input) || offset > length… in dom_character_data_delete_data()
285 if (offset > 0) { in dom_character_data_delete_data()
292 count = length - offset; in dom_character_data_delete_data()
295 second = xmlUTF8Strsub(cur, (int)offset + (int)count, length - (int)offset); in dom_character_data_delete_data()
346 …if (offset < 0 || ZEND_LONG_INT_OVFL(offset) || ZEND_LONG_INT_OVFL(count_input) || offset > length… in dom_character_data_replace_data()
355 if (offset > 0) { in dom_character_data_replace_data()
365 if (offset < length) { in dom_character_data_replace_data()
[all …]
/php-src/ext/dom/tests/
H A Dbug67949.phpt29 $offset = ['test'];
30 var_dump($offset);
31 var_dump(isset($nodes[$offset]), $nodes[$offset]->textContent);
35 $offset = &$something;
37 var_dump($offset);
38 var_dump(isset($nodes[$offset]), $nodes[$offset]->textContent);
41 $offset = 'test';
42 var_dump($offset);
43 var_dump(isset($nodes[$offset]), $nodes[$offset]->textContent);
68 --- testing offset not a long: array ---
[all …]
/php-src/Zend/tests/list/
H A Dlist_keyed_evaluation_order.inc25 public function offsetExists($offset): bool {
26 echo "Existence of offset $offset checked for.", PHP_EOL;
27 return isset($this->array[$offset]);
30 public function offsetUnset($offset): void {
31 unset($this->array[$offset]);
32 echo "Offset $offset removed.", PHP_EOL;
35 public function offsetGet($offset): mixed {
36 echo "Offset $offset retrieved.", PHP_EOL;
37 return $this->array[$offset];
40 public function offsetSet($offset, $value): void {
[all …]
/php-src/Zend/tests/numeric_strings/
H A Dstring_offset.phpt2 Using different sorts of numerical strings as a string offset
42 Cannot access offset of type string on string
44 Cannot access offset of type string on string
46 Cannot access offset of type string on string
48 Cannot access offset of type string on string
50 Warning: Illegal string offset "7str" in %s on line %d
52 Cannot access offset of type string on string
56 Cannot access offset of type string on string
60 Cannot access offset of type string on string
64 Cannot access offset of type string on string
[all …]
/php-src/ext/intl/grapheme/
H A Dgrapheme_util.h26 …trrpos_ascii(char *haystack, size_t haystack_len, char *needle, size_t needle_len, int32_t offset);
28 …*haystack, size_t haystack_len, char *needle, size_t needle_len, int32_t offset, int f_ignore_case…
29 …*haystack, size_t haystack_len, char *needle, size_t needle_len, int32_t offset, int *puchar_pos, …
35 int32_t grapheme_get_haystack_offset(UBreakIterator* bi, int32_t offset);
40 …ne OUTSIDE_STRING(offset, max_len) ( offset <= INT32_MIN || offset > INT32_MAX || (offset < 0 ? -o… argument
/php-src/ext/pdo_mysql/tests/
H A Dpdo_mysql_errorinfo.phpt24 $offset, $expected, $code);
35 function pdo_mysql_errorinfo($db, $offset) {
47 check_error($offset + 2, $db);
51 check_error($offset + 3, $db);
52 check_error($offset + 4, $stmt);
56 check_error($offset + 5, $db);
65 check_error($offset + 9, $db);
66 check_error($offset + 10, $stmt);
73 check_error($offset + 13, $stmt);
74 check_error($offset + 14, $stmt2);
[all …]
/php-src/Zend/tests/dereference/
H A Ddereference_005.phpt17 public function offsetSet($offset, $value): void {
18 $this->container[$offset] = $value;
20 public function offsetExists($offset): bool {
21 return isset($this->container[$offset]);
23 public function offsetUnset($offset): void {
24 unset($this->container[$offset]);
26 public function offsetGet($offset): mixed {
27 return isset($this->container[$offset]) ? $this->container[$offset] : null;
/php-src/ext/hash/sha3/generic32lc/
H A DSnP-Relaned.h21 if ((offset) == 0) { \
31 unsigned int _lanePosition = (offset)/SnP_laneLengthInBytes; \
32 unsigned int _offsetInLane = (offset)%SnP_laneLengthInBytes; \
49 if ((offset) == 0) { \
59 unsigned int _lanePosition = (offset)/SnP_laneLengthInBytes; \
60 unsigned int _offsetInLane = (offset)%SnP_laneLengthInBytes; \
77 if ((offset) == 0) { \
87 unsigned int _lanePosition = (offset)/SnP_laneLengthInBytes; \
88 unsigned int _offsetInLane = (offset)%SnP_laneLengthInBytes; \
105 if ((offset) == 0) { \
[all …]
/php-src/ext/hash/sha3/generic64lc/
H A DSnP-Relaned.h21 if ((offset) == 0) { \
31 unsigned int _lanePosition = (offset)/SnP_laneLengthInBytes; \
32 unsigned int _offsetInLane = (offset)%SnP_laneLengthInBytes; \
49 if ((offset) == 0) { \
59 unsigned int _lanePosition = (offset)/SnP_laneLengthInBytes; \
60 unsigned int _offsetInLane = (offset)%SnP_laneLengthInBytes; \
77 if ((offset) == 0) { \
87 unsigned int _lanePosition = (offset)/SnP_laneLengthInBytes; \
88 unsigned int _offsetInLane = (offset)%SnP_laneLengthInBytes; \
105 if ((offset) == 0) { \
[all …]
/php-src/ext/date/tests/
H A Dbug64992.phpt16 echo "Time Zone offset for $tz for " , $dt->format('Y-m-d') , " is $gmto\n";
20 Time Zone offset for America/Los_Angeles for 2035-01-02 is -28800
21 Time Zone offset for America/Los_Angeles for 2035-07-02 is -25200
22 Time Zone offset for America/Los_Angeles for 2036-01-02 is -28800
23 Time Zone offset for America/Los_Angeles for 2036-07-02 is -25200
24 Time Zone offset for America/Los_Angeles for 2037-01-02 is -28800
25 Time Zone offset for America/Los_Angeles for 2037-07-02 is -25200
26 Time Zone offset for America/Los_Angeles for 2038-01-02 is -28800
27 Time Zone offset for America/Los_Angeles for 2038-07-02 is -25200
28 Time Zone offset for America/Los_Angeles for 2039-01-02 is -28800
[all …]
H A Dbug62896.phpt12 echo $date->format('Y-m-d H:i:s T').' (offset '.$date->getOffset().")\n";
15 echo $date->format('Y-m-d H:i:s T').' (offset '.$date->getOffset().")\n";
21 echo $date->format('Y-m-d H:i:s T').' (offset '.$date->getOffset().")\n";
24 echo $date->format('Y-m-d H:i:s T').' (offset '.$date->getOffset().")\n";
29 echo $date->format('Y-m-d H:i:s T').' (offset '.$date->getOffset().")\n";
36 2012-08-21 22:00:00 GMT+0000 (offset 0)
37 2012-08-21 22:00:00 GMT+0000 (offset 0)
39 2012-08-22 00:00:00 CEST (offset 7200)
40 2012-08-22 00:00:00 CEST (offset 7200)
42 2012-08-22 00:00:00 CEST (offset 7200)
[all …]
/php-src/ext/opcache/tests/jit/
H A Dbug81051.phpt12 public static function readUnsignedVarInt(string $buffer, int &$offset) : int{
13 $offset++;
21 private int $offset;
23 public function __construct(string $buffer, int $offset = 0){
25 $this->offset = $offset;
29 return Binary::readUnsignedVarInt($this->buffer, $this->offset);
33 …return $len === 1 ? $this->buffer[$this->offset++] : substr($this->buffer, ($this->offset += $len)…
/php-src/ext/dom/tests/modern/token_list/
H A Ddimensions_error.phpt17 foreach ($testOffsets as $offset) {
19 $list[$offset];
25 isset($list[$offset]);
31 empty($list[$offset]);
45 Cannot access offset of type stdClass on Dom\TokenList
46 Cannot access offset of type stdClass in isset or empty
47 Cannot access offset of type stdClass in isset or empty
48 Cannot access offset of type array on Dom\TokenList
49 Cannot access offset of type array in isset or empty
50 Cannot access offset of type array in isset or empty
[all …]

Completed in 23 milliseconds

12345678910>>...34