/php-src/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));
|
/php-src/Zend/tests/anon/ |
H A D | 004.phpt | 15 public function offsetGet($offset): mixed { return $this->data[$offset]; } 16 public function offsetSet($offset, $data): void { $this->data[$offset] = $data; } 17 public function offsetUnset($offset): void { unset($this->data[$offset]); } 18 … public function offsetExists($offset): bool { return isset($this->data[$offset]); }
|
H A D | 005.phpt | 17 public function offsetGet($offset): mixed { return $this->data[$offset]; } 18 public function offsetSet($offset, $data): void { $this->data[$offset] = $data; } 19 public function offsetUnset($offset): void { unset($this->data[$offset]); } 20 public function offsetExists($offset): bool { return isset($this->data[$offset]); }
|
/php-src/ext/standard/tests/array/ |
H A D | array_splice_variation3.phpt | 12 function test_splice ($offset, $length) 116 absolute offset - absolute length - cut from middle 157 absolute offset - absolute length - cut from end 239 absolute offset - absolute length - cut everything 280 absolute offset - absolute length - cut nothing 362 absolute offset - relative length - cut from middle 444 absolute offset - relative length - cut nothing 567 relative offset - absolute length - cut from end 649 relative offset - absolute length - cut everything 690 relative offset - absolute length - cut nothing [all …]
|
/php-src/ext/mbstring/tests/ |
H A D | bug45923.phpt | 2 Bug #45923 (mb_st[r]ripos() offset not handled correctly) 11 foreach([0, 3, 6, 9, 11, 12, -1, -3, -6, -20] as $offset) { 12 echo "> Offset: $offset\n"; 14 var_dump($func($haystack, $needle, $offset)); 47 strpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack) 55 strpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack) 70 mb_strpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack) 93 stripos(): Argument #3 ($offset) must be contained in argument #1 ($haystack) 101 stripos(): Argument #3 ($offset) must be contained in argument #1 ($haystack) 139 strrpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack) [all …]
|
H A D | mb_stripos_variation5_Bug45923.phpt | 2 Test mb_stripos() function : usage variations - Pass different integers as $offset argument 8 * Test how mb_stripos() behaves when passed different integers as $offset argument 24 * Loop through integers as multiples of ten for $offset argument 25 * mb_stripos should not be able to accept negative values as $offset. 50 mb_stripos(): Argument #3 ($offset) must be contained in argument #1 ($haystack) 52 mb_stripos(): Argument #3 ($offset) must be contained in argument #1 ($haystack) 86 mb_stripos(): Argument #3 ($offset) must be contained in argument #1 ($haystack) 88 mb_stripos(): Argument #3 ($offset) must be contained in argument #1 ($haystack) 92 mb_stripos(): Argument #3 ($offset) must be contained in argument #1 ($haystack) 94 mb_stripos(): Argument #3 ($offset) must be contained in argument #1 ($haystack) [all …]
|
H A D | mb_strpos_variation5.phpt | 2 Test mb_strpos() function : usage variations - Pass different integers as $offset argument 8 * Test how mb_strpos() behaves when passed different integers as $offset argument 24 * Loop through integers as multiples of ten for $offset argument 50 mb_strpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack) 52 mb_strpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack) 86 mb_strpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack) 88 mb_strpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack) 92 mb_strpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack) 94 mb_strpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack) 98 mb_strpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack) [all …]
|
/php-src/Zend/tests/ |
H A D | 033.phpt | 30 Warning: Trying to access array offset on null in %s on line %d 32 Warning: Trying to access array offset on null in %s on line %d 34 Warning: Trying to access array offset on null in %s on line %d 36 Warning: Trying to access array offset on null in %s on line %d 38 Warning: Trying to access array offset on null in %s on line %d 42 Warning: Trying to access array offset on null in %s on line %d 44 Warning: Trying to access array offset on null in %s on line %d 46 Warning: Trying to access array offset on null in %s on line %d 48 Warning: Trying to access array offset on null in %s on line %d 50 Warning: Trying to access array offset on null in %s on line %d [all …]
|
H A D | bug54367.phpt | 7 public function offsetSet($offset, $value): void { } 8 public function offsetExists($offset): bool { } 9 public function offsetUnset($offset): void { } 11 public function offsetGet($offset): mixed 13 return function ($var) use ($offset) { // here is the problem 14 var_dump($offset, $var);
|
H A D | string_offset_as_object.phpt | 2 Using string offset as object 55 Cannot use string offset as an object 56 Cannot use string offset as an object 57 Cannot use string offset as an object 58 Cannot use string offset as an object 59 Cannot use string offset as an object 60 Cannot use string offset as an object 61 Cannot use string offset as an object 62 Cannot use string offset as an object 63 Cannot use string offset as an object
|
H A D | offset_bool.phpt | 28 Warning: Trying to access array offset on true in %s on line %d 31 Warning: Trying to access array offset on true in %s on line %d 34 Warning: Trying to access array offset on true in %s on line %d 37 Warning: Trying to access array offset on true in %s on line %d 40 Warning: Trying to access array offset on true in %s on line %d 43 Warning: Trying to access array offset on true in %s on line %d 46 Warning: Trying to access array offset on true in %s on line %d 49 Warning: Trying to access array offset on true in %s on line %d 52 Warning: Trying to access array offset on true in %s on line %d
|
H A D | offset_long.phpt | 28 Warning: Trying to access array offset on int in %s on line %d 31 Warning: Trying to access array offset on int in %s on line %d 34 Warning: Trying to access array offset on int in %s on line %d 37 Warning: Trying to access array offset on int in %s on line %d 40 Warning: Trying to access array offset on int in %s on line %d 43 Warning: Trying to access array offset on int in %s on line %d 46 Warning: Trying to access array offset on int in %s on line %d 49 Warning: Trying to access array offset on int in %s on line %d 52 Warning: Trying to access array offset on int in %s on line %d
|
H A D | offset_null.phpt | 28 Warning: Trying to access array offset on null in %s on line %d 31 Warning: Trying to access array offset on null in %s on line %d 34 Warning: Trying to access array offset on null in %s on line %d 37 Warning: Trying to access array offset on null in %s on line %d 40 Warning: Trying to access array offset on null in %s on line %d 43 Warning: Trying to access array offset on null in %s on line %d 46 Warning: Trying to access array offset on null in %s on line %d 49 Warning: Trying to access array offset on null in %s on line %d 52 Warning: Trying to access array offset on null in %s on line %d
|
/php-src/Zend/tests/offsets/ |
H A D | test_offset_helpers.inc | 97 var_dump($offset); 100 public function offsetGet($offset): mixed { 102 var_dump($offset); 105 public function offsetUnset($offset): void { 107 var_dump($offset); 111 var_dump($offset); 119 var_dump($offset); 122 public function offsetGet($offset): mixed { 124 var_dump($offset); 129 var_dump($offset); [all …]
|
H A D | null_container_offset_behaviour.phpt | 140 Cannot access offset of type %s on array 142 Cannot access offset of type %s on array 144 Cannot access offset of type %s on array 150 Cannot access offset of type %s on array 152 Cannot access offset of type %s on array 154 Cannot unset offset of type %s on array 156 Cannot access offset of type %s on array 158 Cannot access offset of type %s on array 160 Cannot access offset of type %s on array 284 foreach ($offsets as $offset) { [all …]
|
H A D | false_container_offset_behaviour.phpt | 146 Cannot access offset of type %s on array 148 Cannot access offset of type %s on array 150 Cannot access offset of type %s on array 156 Cannot access offset of type %s on array 158 Cannot access offset of type %s on array 160 Cannot unset offset of type %s on array 162 Cannot access offset of type %s on array 164 Cannot access offset of type %s on array 166 Cannot access offset of type %s on array 292 foreach ($offsets as $offset) { [all …]
|
H A D | array_container_offset_behaviour.phpt | 137 Cannot access offset of type %s on array 139 Cannot access offset of type %s on array 141 Cannot access offset of type %s on array 143 Cannot access offset of type %s on array 149 Cannot access offset of type %s on array 151 Cannot access offset of type %s on array 153 Cannot unset offset of type %s on array 155 Cannot access offset of type %s on array 157 Cannot access offset of type %s on array 285 foreach ($offsets as $offset) { [all …]
|
/php-src/ext/standard/tests/serialize/ |
H A D | invalid_signs_in_lengths.phpt | 21 Warning: unserialize(): Error at offset 0 of 9 bytes in %s on line %d 24 Warning: unserialize(): Error at offset 0 of 9 bytes in %s on line %d 27 Warning: unserialize(): Error at offset 0 of 7 bytes in %s on line %d 30 Warning: unserialize(): Error at offset 0 of 7 bytes in %s on line %d 33 Warning: unserialize(): Error at offset 0 of 20 bytes in %s on line %d 36 Warning: unserialize(): Error at offset 0 of 20 bytes in %s on line %d 39 Warning: unserialize(): Error at offset 0 of 24 bytes in %s on line %d 42 Warning: unserialize(): Error at offset 0 of 24 bytes in %s on line %d 45 Warning: unserialize(): Error at offset 9 of 15 bytes in %s on line %d 48 Warning: unserialize(): Error at offset 9 of 15 bytes in %s on line %d [all …]
|
H A D | bug25378.phpt | 20 Warning: unserialize(): Error at offset 0 of 8 bytes in %s on line %d 23 Warning: unserialize(): Error at offset 0 of 5 bytes in %s on line %d 26 Warning: unserialize(): Error at offset 13 of 19 bytes in %s on line %d 29 Warning: unserialize(): Error at offset 14 of 19 bytes in %s on line %d 32 Warning: unserialize(): Error at offset 2 of 22 bytes in %s on line %d 35 Warning: unserialize(): Error at offset 17 of 18 bytes in %s on line %d 38 Warning: unserialize(): Error at offset 24 of 33 bytes in %s on line %d 47 Warning: unserialize(): Error at offset 2 of 13 bytes in %s on line %d 50 Warning: unserialize(): Error at offset 2 of 11 bytes in %s on line %d 53 Warning: unserialize(): Error at offset 8 of 9 bytes in %s on line %d [all …]
|
/php-src/Zend/ |
H A D | zend_multiply.h | 175 if (ZEND_CONST_COND(offset == 0, 0)) { in zend_safe_address() 185 "rm"(offset)); in zend_safe_address() 209 if (ZEND_CONST_COND(offset == 0, 0)) { in zend_safe_address() 222 "rm"(offset)); in zend_safe_address() 244 "0"(offset), in zend_safe_address() 266 "r"(offset)); in zend_safe_address() 290 "r"(offset)); in zend_safe_address() 318 size_t res = nmemb * size + offset; in zend_safe_address() 319 double _d = (double)nmemb * (double)size + (double)offset; in zend_safe_address() 334 size_t ret = zend_safe_address(nmemb, size, offset, &overflow); in zend_safe_address_guarded() [all …]
|
/php-src/ext/fileinfo/libmagic/ |
H A D | softmagic.c | 1347 ms->search.offset = offset; in mcopy() 1397 ms->search.offset = offset; in mcopy() 1508 offset = lhs; in do_ops() 1510 offset = ~offset; in do_ops() 1526 offset = -m->offset; in msetoffset() 1549 offset = m->offset; in msetoffset() 1554 ms->offset = offset; in msetoffset() 1557 ms->offset = ms->eoffset + offset; in msetoffset() 1599 uint32_t eoffset, offset = ms->offset; in mget() local 1814 ms->offset = offset; in mget() [all …]
|
/php-src/ext/intl/grapheme/ |
H A D | grapheme_util.c | 152 if(offset != 0) { in grapheme_strpos_utf16() 166 if (offset >= 0) { in grapheme_strpos_utf16() 299 if ( 0 == offset ) { in grapheme_get_haystack_offset() 303 if ( offset < 0 ) { in grapheme_get_haystack_offset() 320 offset += iter_incr; in grapheme_get_haystack_offset() 324 if ( offset != 0 ) { in grapheme_get_haystack_offset() 337 if (offset >= 0) { in grapheme_strrpos_ascii() 338 p = haystack + offset; in grapheme_strrpos_ascii() 342 if (needle_len > (size_t)-offset) { in grapheme_strrpos_ascii() 353 return (e - p + (offset > 0 ? offset : 0)); in grapheme_strrpos_ascii() [all …]
|
/php-src/ext/hash/sha3/generic32lc/ |
H A D | KeccakP-1600-SnP.h | 28 void KeccakP1600_AddByte(void *state, unsigned char data, unsigned int offset); 29 void KeccakP1600_AddBytes(void *state, const unsigned char *data, unsigned int offset, unsigned int… 30 void KeccakP1600_OverwriteBytes(void *state, const unsigned char *data, unsigned int offset, unsign… 35 void KeccakP1600_ExtractBytes(const void *state, unsigned char *data, unsigned int offset, unsigned… 36 … *state, const unsigned char *input, unsigned char *output, unsigned int offset, unsigned int leng…
|
/php-src/ext/spl/tests/ |
H A D | fixedarray_003.phpt | 2 SPL: SplFixedArray: Non integer offset handling 171 Cannot access offset of type array on SplFixedArray 175 Cannot access offset of type string on SplFixedArray 176 Cannot access offset of type string on SplFixedArray 177 Cannot access offset of type string on SplFixedArray 184 Cannot access offset of type array on SplFixedArray 190 Cannot access offset of type string on SplFixedArray 191 Cannot access offset of type string on SplFixedArray 192 Cannot access offset of type string on SplFixedArray 199 Cannot access offset of type array on SplFixedArray [all …]
|
/php-src/ext/iconv/tests/ |
H A D | iconv_strpos_variation5.phpt | 2 Test iconv_strpos() function : usage variations - Pass different integers as $offset argument 10 * Test how iconv_strpos() behaves when passed different integers as $offset argument 26 * Loop through integers as multiples of ten for $offset argument 52 iconv_strpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack) 54 iconv_strpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack) 88 iconv_strpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack) 90 iconv_strpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack) 94 iconv_strpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack) 96 iconv_strpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack) 100 iconv_strpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack) [all …]
|