/PHP-8.0/ext/standard/tests/array/ |
H A D | array_slice_variation5.phpt | 28 -- $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-8.0/ext/spl/ |
H A D | spl_engine.c | 32 PHPAPI zend_long spl_offset_convert_to_long(zval *offset) /* {{{ */ in spl_offset_convert_to_long() argument 37 switch (Z_TYPE_P(offset)) { in spl_offset_convert_to_long() 39 if (ZEND_HANDLE_NUMERIC(Z_STR_P(offset), idx)) { in spl_offset_convert_to_long() 44 return zend_dval_to_lval(Z_DVAL_P(offset)); in spl_offset_convert_to_long() 46 return Z_LVAL_P(offset); in spl_offset_convert_to_long() 52 offset = Z_REFVAL_P(offset); in spl_offset_convert_to_long() 55 return Z_RES_HANDLE_P(offset); in spl_offset_convert_to_long()
|
/PHP-8.0/ext/dom/tests/ |
H A D | bug67949.phpt | 27 $offset = ['test']; 28 var_dump($offset); 29 var_dump(isset($nodes[$offset]), $nodes[$offset]->textContent); 30 var_dump($offset); 35 var_dump($offset); 36 var_dump(isset($nodes[$offset]), $nodes[$offset]->textContent); 37 var_dump($offset); 39 $offset = 'test'; 40 var_dump($offset); 41 var_dump(isset($nodes[$offset]), $nodes[$offset]->textContent); [all …]
|
/PHP-8.0/Zend/tests/ |
H A D | bug39018.phpt | 65 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 D | bug64417.phpt | 7 public function offsetSet($offset, $value) { 8 if (is_null($offset)) { 11 $this->container[$offset] = $value; 14 public function offsetExists($offset) { 15 return isset($this->container[$offset]); 17 public function offsetUnset($offset) { 18 unset($this->container[$offset]); 20 public function &offsetGet($offset) { 22 if (isset($this->container[$offset])) { 23 $result = &$this->container[$offset];
|
H A D | list_keyed_evaluation_order.inc | 25 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) { 36 echo "Offset $offset retrieved.", PHP_EOL; 37 return $this->array[$offset]; 40 public function offsetSet($offset, $value): void { [all …]
|
H A D | dereference_005.phpt | 17 public function offsetSet($offset, $value) { 18 $this->container[$offset] = $value; 20 public function offsetExists($offset) { 21 return isset($this->container[$offset]); 23 public function offsetUnset($offset) { 24 unset($this->container[$offset]); 26 public function offsetGet($offset) { 27 return isset($this->container[$offset]) ? $this->container[$offset] : null;
|
H A D | bug32252.phpt | 8 function offsetExists($offset) 10 echo __METHOD__ . "($offset)\n"; 14 function offsetGet($offset) 16 echo __METHOD__ . "($offset)\n"; 20 function offsetSet($offset, $value) 22 echo __METHOD__ . "($offset, $value)\n"; 26 function offsetUnset($offset) 28 echo __METHOD__ . "($offset)\n";
|
H A D | bug68896.phpt | 7 function offsetGet($offset) { 8 return $this->a[$offset]; 10 function offsetSet($offset, $value) { 11 $this->a[$offset] = $value; 13 function offsetExists($offset) { 14 isset($this->a[$offset]); 16 function offsetUnset($offset) { 17 unset($this->a[$offset]);
|
H A D | bug69955.phpt | 7 function offsetExists($offset) 9 echo "\nInside " . __METHOD__ . "\n"; var_dump($offset); 11 function offsetGet($offset) 13 echo "\nInside " . __METHOD__ . "\n"; var_dump($offset); return 100; 15 function offsetSet($offset, $value) 17 echo "\nInside " . __METHOD__ . "\n"; var_dump($offset); var_dump($value); 19 function offsetUnset($offset) 21 echo "\nInside " . __METHOD__ . "\n"; var_dump($offset);
|
/PHP-8.0/ext/dom/ |
H A D | characterdata.c | 138 …if (offset < 0 || count < 0 || ZEND_LONG_INT_OVFL(offset) || ZEND_LONG_INT_OVFL(count) || offset >… in PHP_METHOD() 191 zend_long offset; in PHP_METHOD() local 210 if (offset < 0 || ZEND_LONG_INT_OVFL(offset) || offset > length) { in PHP_METHOD() 217 second = xmlUTF8Strsub(cur, (int)offset, length - (int)offset); in PHP_METHOD() 257 …if (offset < 0 || count < 0 || ZEND_LONG_INT_OVFL(offset) || ZEND_LONG_INT_OVFL(count) || offset >… in PHP_METHOD() 263 if (offset > 0) { in PHP_METHOD() 273 second = xmlUTF8Strsub(cur, (int)offset + (int)count, length - (int)offset); in PHP_METHOD() 314 …if (offset < 0 || count < 0 || ZEND_LONG_INT_OVFL(offset) || ZEND_LONG_INT_OVFL(count) || offset >… in PHP_METHOD() 320 if (offset > 0) { in PHP_METHOD() 330 if (offset < length) { in PHP_METHOD() [all …]
|
/PHP-8.0/ext/mbstring/tests/ |
H A D | mb_strpos_empty_needle.phpt | 17 echo "\n-- ASCII string without offset --\n"; 20 echo "\n-- ASCII string with in range positive offset --\n"; 40 echo "\n-- Multi-byte string without offset --\n"; 65 -- ASCII string without offset -- 68 -- ASCII string with in range positive offset -- 71 -- ASCII string with in range negative offset -- 74 -- ASCII string with out of bound positive offset -- 77 -- ASCII string with out of bound negative offset -- 80 -- Multi-byte string without offset -- 83 -- Multi-byte string with in range positive offset -- [all …]
|
H A D | mb_strrpos_empty_needle.phpt | 17 echo "\n-- ASCII string without offset --\n"; 20 echo "\n-- ASCII string with in range positive offset --\n"; 41 echo "\n-- Multi-byte string without offset --\n"; 66 -- ASCII string without offset -- 69 -- ASCII string with in range positive offset -- 72 -- ASCII string with in range negative offset -- 75 -- ASCII string with out of bound positive offset -- 78 -- ASCII string with out of bound negative offset -- 81 -- Multi-byte string without offset -- 84 -- Multi-byte string with in range positive offset -- [all …]
|
H A D | mb_stripos_empty_needle.phpt | 17 echo "\n-- ASCII string without offset --\n"; 20 echo "\n-- ASCII string with in range positive offset --\n"; 41 echo "\n-- Multi-byte string without offset --\n"; 66 -- ASCII string without offset -- 69 -- ASCII string with in range positive offset -- 72 -- ASCII string with in range negative offset -- 75 -- ASCII string with out of bound positive offset -- 78 -- ASCII string with out of bound negative offset -- 81 -- Multi-byte string without offset -- 84 -- Multi-byte string with in range positive offset -- [all …]
|
H A D | mb_strripos_empty_needle.phpt | 17 echo "\n-- ASCII string without offset --\n"; 20 echo "\n-- ASCII string with in range positive offset --\n"; 41 echo "\n-- Multi-byte string without offset --\n"; 66 -- ASCII string without offset -- 69 -- ASCII string with in range positive offset -- 72 -- ASCII string with in range negative offset -- 75 -- ASCII string with out of bound positive offset -- 78 -- ASCII string with out of bound negative offset -- 81 -- Multi-byte string without offset -- 84 -- Multi-byte string with in range positive offset -- [all …]
|
/PHP-8.0/ext/opcache/jit/libudis86/ |
H A D | syn.c | 140 int64_t offset = 0; in ud_syn_print_addr() local 143 if (offset) { in ud_syn_print_addr() 180 int64_t offset = 0; in ud_syn_print_imm() local 183 if (offset) { in ud_syn_print_imm() 199 UD_ASSERT(op->offset != 0); in ud_syn_print_mem_disp() 204 switch (op->offset) { in ud_syn_print_mem_disp() 212 int64_t offset = 0; in ud_syn_print_mem_disp() local 215 if (offset) { in ud_syn_print_mem_disp() 228 switch (op->offset) { in ud_syn_print_mem_disp() 236 int64_t offset = 0; in ud_syn_print_mem_disp() local [all …]
|
/PHP-8.0/Zend/tests/numeric_strings/ |
H A D | string_offset.phpt | 2 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-8.0/ext/intl/grapheme/ |
H A D | grapheme_util.h | 26 …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-8.0/ext/pdo_mysql/tests/ |
H A D | pdo_mysql_errorinfo.phpt | 22 $offset, $expected, $code); 34 function pdo_mysql_errorinfo($db, $offset) { 46 check_error($offset + 2, $db); 50 check_error($offset + 3, $db); 51 check_error($offset + 4, $stmt); 55 check_error($offset + 5, $db); 64 check_error($offset + 9, $db); 65 check_error($offset + 10, $stmt); 72 check_error($offset + 13, $stmt); 73 check_error($offset + 14, $stmt2); [all …]
|
/PHP-8.0/ext/hash/sha3/generic32lc/ |
H A D | SnP-Relaned.h | 21 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-8.0/ext/hash/sha3/generic64lc/ |
H A D | SnP-Relaned.h | 21 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 …]
|
H A D | KeccakP-1600-SnP.h | 35 #define KeccakP1600_AddByte(state, byte, offset) \ argument 36 ((unsigned char*)(state))[(offset)] ^= (byte) 38 void KeccakP1600_AddByte(void *state, unsigned char data, unsigned int offset); 40 void KeccakP1600_AddBytes(void *state, const unsigned char *data, unsigned int offset, unsigned int… 41 void KeccakP1600_OverwriteBytes(void *state, const unsigned char *data, unsigned int offset, unsign… 46 void KeccakP1600_ExtractBytes(const void *state, unsigned char *data, unsigned int offset, unsigned… 47 … *state, const unsigned char *input, unsigned char *output, unsigned int offset, unsigned int leng…
|
/PHP-8.0/ext/opcache/tests/jit/ |
H A D | bug81051.phpt | 13 public static function readUnsignedVarInt(string $buffer, int &$offset) : int{ 14 $offset++; 22 private int $offset; 24 public function __construct(string $buffer, int $offset = 0){ 26 $this->offset = $offset; 30 return Binary::readUnsignedVarInt($this->buffer, $this->offset); 34 …return $len === 1 ? $this->buffer[$this->offset++] : substr($this->buffer, ($this->offset += $len)…
|
/PHP-8.0/Zend/tests/anon/ |
H A D | 004.phpt | 15 public function offsetGet($offset) { return $this->data[$offset]; } 16 public function offsetSet($offset, $data) { return ($this->data[$offset] = $data); } 17 public function offsetUnset($offset) { unset($this->data[$offset]); } 18 public function offsetExists($offset) { return isset($this->data[$offset]); }
|
/PHP-8.0/ext/date/tests/ |
H A D | bug40861.phpt | 7 $offset = +60; 9 $result = date("Y-m-d H:i:s", strtotime("+$offset minutes", $ts)); 12 $offset = -60; 14 $result = date("Y-m-d H:i:s", strtotime("+$offset minutes", $ts)); 17 $offset = -60; 19 $result = date("Y-m-d H:i:s", strtotime("-$offset minutes", $ts)); 23 $offset = 60; 25 $result = date("Y-m-d H:i:s", strtotime("+$offset minutes", $ts));
|