/php-src/ext/date/tests/ |
H A D | timezone_abbreviations_list_basic1.phpt | 30 ["offset"]=> 39 ["offset"]=> 48 ["offset"]=> 57 ["offset"]=> 66 ["offset"]=> 75 ["offset"]=>
|
H A D | date_offset_get_basic1.phpt | 13 echo "Winter offset: " . date_offset_get($winter) / 3600 . " hours\n"; 14 echo "Summer offset: " . date_offset_get($summer) / 3600 . " hours\n"; 19 Winter offset: 0 hours 20 Summer offset: 1 hours
|
H A D | DateTime_getOffset_basic1.phpt | 13 echo "Winter offset: " . $winter->getOffset() / 3600 . " hours\n"; 14 echo "Summer offset: " . $summer->getOffset() / 3600 . " hours\n"; 19 Winter offset: 0 hours 20 Summer offset: 1 hours
|
/php-src/Zend/tests/ |
H A D | str_offset_003.phpt | 2 string offset 003 23 Warning: Uninitialized string offset -10 in %s on line %d 27 Warning: Uninitialized string offset -2 in %s on line %d 31 Warning: Uninitialized string offset -10 in %s on line %d 35 Warning: Uninitialized string offset -2 in %s on line %d
|
H A D | bug78356.phpt | 6 public function offsetGet($offset): mixed 10 public function offsetExists($offset): bool 14 public function offsetUnset($offset): void {} 15 public function offsetSet($offset, $value): void {}
|
H A D | list_keyed_ArrayAccess.phpt | 28 public function offsetGet($offset): mixed { 30 var_dump($offset); 33 public function offsetSet($offset, $value): void { 35 public function offsetExists($offset): bool { 37 public function offsetUnset($offset): void { 43 // PHP shouldn't convert this to an integer offset, because it's ArrayAccess
|
H A D | bug33710.phpt | 8 function offsetExists($offset): bool { return true;} 9 function offsetGet($offset): mixed { return null; } 10 function offsetSet($offset, $value): void {/*...*/} 11 function offsetUnset($offset): void {/*...*/}
|
H A D | bug63217.phpt | 2 Bug #63217 (Constant numeric strings become integers when used as ArrayAccess offset) 10 public function offsetExists($offset): bool { 12 var_dump($offset); 15 public function offsetUnset($offset): void { 17 var_dump($offset); 19 public function offsetSet($offset, $value): void { 21 var_dump($offset); 23 public function offsetGet($offset): mixed { 25 var_dump($offset);
|
H A D | str_offset_001.phpt | 2 string offset 001 31 Warning: Uninitialized string offset 3 in %s on line %d 35 Warning: Uninitialized string offset 1 in %s on line %d 41 Warning: Uninitialized string offset 3 in %s on line %d 45 Warning: Uninitialized string offset 1 in %s on line %d
|
H A D | bug71572.phpt | 2 Bug #71572: String offset assignment from an empty string inserts null byte 30 Cannot assign an empty string to a string offset 31 Cannot assign an empty string to a string offset 32 Cannot assign an empty string to a string offset 33 Cannot assign an empty string to a string offset
|
/php-src/ext/mysqli/tests/ |
H A D | mysqli_stmt_fetch_geom.phpt | 18 function func_mysqli_stmt_fetch_geom($link, $engine, $sql_type, $bind_value, $offset) { 21 printf("[%04d] [%d] %s\n", $offset, mysqli_errno($link), mysqli_error($link)); 33 … printf("[%04d] [%d] %s\n", $offset + 2 + $id, mysqli_errno($link), mysqli_error($link)); 38 printf("[%04d] [%d] %s\n", $offset + 6, mysqli_errno($link), mysqli_error($link)); 43 … printf("[%04d] [%d] %s\n", $offset + 7, mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt)); 49 … printf("[%04d] [%d] %s\n", $offset + 8, mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt)); 75 $offset + 17, mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt), $num); 82 printf("[%04d] [%d] %s\n", $offset + 10, mysqli_errno($link), mysqli_error($link)); 105 printf("[%04d] [%d] %s\n", $offset + 14, mysqli_errno($link), mysqli_error($link)); 110 printf("[%04d] [%d] %s\n", $offset + 15, mysqli_errno($link), mysqli_error($link)); [all …]
|
H A D | mysqli_stmt_get_result_geom.phpt | 18 function func_mysqli_stmt_get_result_geom($link, $engine, $sql_type, $bind_value, $offset) { 21 printf("[%04d] [%d] %s\n", $offset, mysqli_errno($link), mysqli_error($link)); 33 … printf("[%04d] [%d] %s\n", $offset + 2 + $id, mysqli_errno($link), mysqli_error($link)); 38 printf("[%04d] [%d] %s\n", $offset + 6, mysqli_errno($link), mysqli_error($link)); 43 … printf("[%04d] [%d] %s\n", $offset + 7, mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt)); 49 … printf("[%04d] [%d] %s\n", $offset + 8, mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt)); 70 printf("[%04d] [%d] %s\n", $offset + 11, mysqli_errno($link), mysqli_error($link)); 93 printf("[%04d] [%d] %s\n", $offset + 15, mysqli_errno($link), mysqli_error($link)); 98 printf("[%04d] [%d] %s\n", $offset + 16, mysqli_errno($link), mysqli_error($link)); 103 printf("[%04d] PS and non-PS return different data.\n", $offset + 17); [all …]
|
/php-src/ext/spl/tests/SplObjectStorage/ |
H A D | SplObjectStorage_unserialize_invalid_parameter2.phpt | 29 Error at offset %d of %d bytes 30 Error at offset %d of %d bytes 31 Error at offset %d of %d bytes 32 Error at offset %d of %d bytes 33 Error at offset %d of %d bytes
|
/php-src/ext/mbstring/tests/ |
H A D | bug43841.phpt | 2 Test mb_strrpos() function : mb_strrpos offset is byte count for negative values 8 * Test that mb_strrpos offset is byte count for negative values (should be character count) 42 mb_strrpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack) 45 mb_strrpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack) 47 strrpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack) 51 mb_strrpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack) 54 mb_strrpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack) 56 strrpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
|
/php-src/ext/pdo_mysql/tests/ |
H A D | pdo_mysql_stmt_blobs.phpt | 26 function test_blob($db, $offset, $sql_type, $test_len) { 37 $offset, $stmt->errorCode(), var_export($stmt->errorInfo(), true)); 48 $offset, $stmt->errorCode(), var_export($stmt->errorInfo(), true)); 53 printf("[%03d + 3] Returned value is not a stream resource\n", $offset); 60 $offset, strlen($contents), strlen($value)); 66 $offset, var_export($id, true)); 75 $offset, strlen($ret['label']), strlen($value)); 81 $offset, var_export($ret['id'], true)); 88 $offset = 0; 91 test_blob($db, ++$offset, $sql_type, $test_len); [all …]
|
/php-src/ext/phar/tests/zip/files/ |
H A D | corrupt_zipmaker.php.inc | 41 var $offset = 0; 173 $offset = strlen($central); 181 $offset = strlen($central); 189 $offset = strlen($central); 197 $offset = strlen($central); 205 $offset = strlen($central); 213 $offset = strlen($central); 221 $offset = strlen($central); 223 case 'offset' : 273 $offset = 0; [all …]
|
/php-src/ext/standard/tests/strings/ |
H A D | str_increment_polyfill.phpt | 8 $offset = stripos($s, 'e'); 9 if ($offset !== false) { 12 $c = $s[$offset]; 14 $s[$offset] = $c; 16 $s[$offset] = match ($s[$offset]) {
|
H A D | substr_count_error.phpt | 9 /* offset before start */ 16 /* offset > size of the string */ 23 /* Using offset and length to go beyond the size of the string: 24 Exception is expected, as length+offset > length of string */ 43 substr_count(): Argument #3 ($offset) must be contained in argument #1 ($haystack) 44 substr_count(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
|
/php-src/ext/opcache/tests/jit/ |
H A D | bug81225.phpt | 14 function unsignedLong(int $offset): int 16 $normalizedOffset = $offset % (2 ** 32); 25 $offset = -0x100000000 + 2; 28 assert(unsignedLong($offset) === 2);
|
/php-src/ext/spl/ |
H A D | spl_fixedarray.c | 125 ZEND_ASSERT(offset >= 0); in spl_fixedarray_copy_range() 330 switch (Z_TYPE_P(offset)) { in spl_offset_convert_to_long() 341 return Z_LVAL_P(offset); in spl_offset_convert_to_long() 347 offset = Z_REFVAL_P(offset); in spl_offset_convert_to_long() 351 return Z_RES_HANDLE_P(offset); in spl_offset_convert_to_long() 365 if (!offset) { in spl_fixedarray_object_read_dimension_helper() 393 if (!offset) { in spl_fixedarray_object_read_dimension() 395 offset = &tmp; in spl_fixedarray_object_read_dimension() 412 if (!offset) { in spl_fixedarray_object_write_dimension_helper() 441 if (!offset) { in spl_fixedarray_object_write_dimension() [all …]
|
/php-src/ext/opcache/tests/ |
H A D | bug77275.phpt | 13 public function offsetSet($offset, $value): void { throw new \Exception; } 14 public function offsetGet($offset): mixed { var_dump($offset); return null; } 15 public function offsetExists($offset): bool { throw new \Exception; } 16 public function offsetUnset($offset): void { throw new \Exception; }
|
/php-src/ext/standard/tests/file/ |
H A D | bug38450.phpt | 49 function stream_seek($offset, $whence) 53 if ($offset < strlen($GLOBALS[$this->varname]) && $offset >= 0) { 54 $this->position = $offset; 62 if ($offset >= 0) { 63 $this->position += $offset; 71 if (strlen($GLOBALS[$this->varname]) + $offset >= 0) { 72 $this->position = strlen($GLOBALS[$this->varname]) + $offset;
|
H A D | bug38450_1.phpt | 49 function stream_seek($offset, $whence) 53 if ($offset < strlen($GLOBALS[$this->varname]) && $offset >= 0) { 54 $this->position = $offset; 62 if ($offset >= 0) { 63 $this->position += $offset; 71 if (strlen($GLOBALS[$this->varname]) + $offset >= 0) { 72 $this->position = strlen($GLOBALS[$this->varname]) + $offset;
|
/php-src/ext/dom/ |
H A D | text.c | 109 zend_long offset; in PHP_METHOD() local 114 if (zend_parse_parameters(ZEND_NUM_ARGS(), "l", &offset) == FAILURE) { in PHP_METHOD() 119 if (offset < 0) { in PHP_METHOD() 131 if (ZEND_LONG_INT_OVFL(offset) || (int)offset > length) { in PHP_METHOD() 138 first = xmlUTF8Strndup(cur, (int)offset); in PHP_METHOD() 139 second = xmlUTF8Strsub(cur, (int)offset, (int)(length - offset)); in PHP_METHOD()
|
/php-src/Zend/ |
H A D | zend_interfaces.stub.php | 34 public function offsetExists(mixed $offset): bool; argument 40 public function offsetGet(mixed $offset): mixed; argument 43 public function offsetSet(mixed $offset, mixed $value): void; argument 46 public function offsetUnset(mixed $offset): void; argument
|