/PHP-8.0/ext/spl/tests/ |
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-8.0/ext/date/tests/ |
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-8.0/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-8.0/ext/mysqli/tests/ |
H A D | mysqli_stmt_fetch_geom.phpt | 17 function func_mysqli_stmt_fetch_geom($link, $engine, $sql_type, $bind_value, $offset) { 20 printf("[%04d] [%d] %s\n", $offset, mysqli_errno($link), mysqli_error($link)); 32 … printf("[%04d] [%d] %s\n", $offset + 2 + $id, mysqli_errno($link), mysqli_error($link)); 37 printf("[%04d] [%d] %s\n", $offset + 6, mysqli_errno($link), mysqli_error($link)); 42 … printf("[%04d] [%d] %s\n", $offset + 7, mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt)); 48 … printf("[%04d] [%d] %s\n", $offset + 8, mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt)); 74 $offset + 17, mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt), $num); 81 printf("[%04d] [%d] %s\n", $offset + 10, mysqli_errno($link), mysqli_error($link)); 104 printf("[%04d] [%d] %s\n", $offset + 14, mysqli_errno($link), mysqli_error($link)); 109 printf("[%04d] [%d] %s\n", $offset + 15, mysqli_errno($link), mysqli_error($link)); [all …]
|
H A D | mysqli_stmt_get_result_geom.phpt | 20 function func_mysqli_stmt_get_result_geom($link, $engine, $sql_type, $bind_value, $offset) { 23 printf("[%04d] [%d] %s\n", $offset, mysqli_errno($link), mysqli_error($link)); 35 … printf("[%04d] [%d] %s\n", $offset + 2 + $id, mysqli_errno($link), mysqli_error($link)); 40 printf("[%04d] [%d] %s\n", $offset + 6, mysqli_errno($link), mysqli_error($link)); 45 … printf("[%04d] [%d] %s\n", $offset + 7, mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt)); 51 … printf("[%04d] [%d] %s\n", $offset + 8, mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt)); 72 printf("[%04d] [%d] %s\n", $offset + 11, mysqli_errno($link), mysqli_error($link)); 95 printf("[%04d] [%d] %s\n", $offset + 15, mysqli_errno($link), mysqli_error($link)); 100 printf("[%04d] [%d] %s\n", $offset + 16, mysqli_errno($link), mysqli_error($link)); 105 printf("[%04d] PS and non-PS return different data.\n", $offset + 17); [all …]
|
/PHP-8.0/Zend/tests/ |
H A D | bug63217.phpt | 2 Bug #63217 (Constant numeric strings become integers when used as ArrayAccess offset) 10 public function offsetExists($offset) { 12 var_dump($offset); 14 public function offsetUnset($offset) { 16 var_dump($offset); 18 public function offsetSet($offset, $value) { 20 var_dump($offset); 22 public function offsetGet($offset) { 24 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
|
H A D | illegal_offset_unset_isset_empty.phpt | 2 Using unset(), isset(), empty() with an illegal array offset throws 25 Illegal offset type in unset 26 Illegal offset type in isset or empty 27 Illegal offset type in isset or empty
|
/PHP-8.0/ext/standard/tests/strings/ |
H A D | strpos.phpt | 70 1, // offset = 1 71 "string", // offset as string, converts to zero 72 NULL, // offset as string, converts to zero 73 "", // offset as string, converts to zero 234 Position of 'Hello' with offset '1' is => int(74) 235 Position of 'Hello' with offset 'string' is => 237 Position of 'Hello' with offset '' is => int(0) 238 Position of 'Hello' with offset '' is => 240 Position of 'Hello' with offset '0' is => int(0) 242 Position of 'Hello' with offset '' is => int(0) [all …]
|
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)
|
H A D | bug40754.phpt | 83 substr_count(): Argument #3 ($offset) must be contained in argument #1 ($haystack) 84 substr_compare(): Argument #3 ($offset) must be contained in argument #1 ($main_str) 85 stripos(): Argument #3 ($offset) must be contained in argument #1 ($haystack) 86 substr_count(): Argument #3 ($offset) must be contained in argument #1 ($haystack) 88 strpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack) 89 stripos(): Argument #3 ($offset) must be contained in argument #1 ($haystack) 90 strrpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack) 91 strripos(): Argument #3 ($offset) must be contained in argument #1 ($haystack) 92 strripos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
|
/PHP-8.0/ext/pdo_mysql/tests/ |
H A D | pdo_mysql_stmt_blobs.phpt | 25 function test_blob($db, $offset, $sql_type, $test_len) { 36 $offset, $stmt->errorCode(), var_export($stmt->errorInfo(), true)); 47 $offset, $stmt->errorCode(), var_export($stmt->errorInfo(), true)); 53 $offset, strlen($label), strlen($value)); 59 $offset, var_export($id, true)); 68 $offset, strlen($ret['label']), strlen($value)); 74 $offset, var_export($ret['id'], true)); 81 $offset = 0; 84 test_blob($db, ++$offset, $sql_type, $test_len); 86 test_blob($db, ++$offset, $sql_type, $test_len);
|
/PHP-8.0/Zend/tests/named_params/ |
H A D | internal.phpt | 6 var_dump(array_slice(array: [1, 2, 3, 4, 5], offset: 2, length: 2)); 7 var_dump(array_slice(length: 2, offset: 2, array: [1, 2, 3, 4, 5])); 9 var_dump(array_slice(array: ['a' => 0, 'b' => 1], offset: 1, preserve_keys: true)); 10 var_dump(array_slice(['a' => 0, 'b' => 1], preserve_keys: true, offset: 1));
|
/PHP-8.0/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-8.0/ext/standard/tests/file/ |
H A D | bug38450.phpt | 48 function stream_seek($offset, $whence) 52 if ($offset < strlen($GLOBALS[$this->varname]) && $offset >= 0) { 53 $this->position = $offset; 61 if ($offset >= 0) { 62 $this->position += $offset; 70 if (strlen($GLOBALS[$this->varname]) + $offset >= 0) { 71 $this->position = strlen($GLOBALS[$this->varname]) + $offset;
|
H A D | bug38450_1.phpt | 48 function stream_seek($offset, $whence) 52 if ($offset < strlen($GLOBALS[$this->varname]) && $offset >= 0) { 53 $this->position = $offset; 61 if ($offset >= 0) { 62 $this->position += $offset; 70 if (strlen($GLOBALS[$this->varname]) + $offset >= 0) { 71 $this->position = strlen($GLOBALS[$this->varname]) + $offset;
|
H A D | bug38450_2.phpt | 48 function stream_seek($offset, $whence) 52 if ($offset < strlen($GLOBALS[$this->varname]) && $offset >= 0) { 53 $this->position = $offset; 61 if ($offset >= 0) { 62 $this->position += $offset; 70 if (strlen($GLOBALS[$this->varname]) + $offset >= 0) { 71 $this->position = strlen($GLOBALS[$this->varname]) + $offset;
|
/PHP-8.0/ext/mbstring/tests/ |
H A D | bug43841.phpt | 2 Test mb_strrpos() function : mb_strrpos offset is byte count for negative values 11 * Test that mb_strrpos offset is byte count for negative values (should be character count) 45 mb_strrpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack) 48 mb_strrpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack) 50 strrpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack) 54 mb_strrpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack) 57 mb_strrpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack) 59 strrpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
|
/PHP-8.0/ext/dom/ |
H A D | text.c | 115 zend_long offset; in PHP_METHOD() local 120 if (zend_parse_parameters(ZEND_NUM_ARGS(), "l", &offset) == FAILURE) { in PHP_METHOD() 125 if (offset < 0) { in PHP_METHOD() 142 if (ZEND_LONG_INT_OVFL(offset) || (int)offset > length) { in PHP_METHOD() 148 first = xmlUTF8Strndup(cur, (int)offset); in PHP_METHOD() 149 second = xmlUTF8Strsub(cur, (int)offset, (int)(length - offset)); in PHP_METHOD()
|
/PHP-8.0/tests/classes/ |
H A D | array_access_013.phpt | 8 … public function offsetExists($offset) { throw new Exception(__METHOD__); return false; } 9 … public function offsetGet($offset) { throw new Exception(__METHOD__); return $offset; } 10 public function offsetSet($offset, $data ) { throw new Exception(__METHOD__); } 11 public function offsetUnset($offset) { throw new Exception(__METHOD__); }
|
/PHP-8.0/ext/standard/ |
H A D | microtime.c | 65 timelib_time_offset *offset; in _php_gettimeofday() local 67 offset = timelib_get_time_zone_info(tp.tv_sec, get_timezone_info()); in _php_gettimeofday() 73 add_assoc_long(return_value, "minuteswest", -offset->offset / SEC_IN_MIN); in _php_gettimeofday() 74 add_assoc_long(return_value, "dsttime", offset->is_dst); in _php_gettimeofday() 76 timelib_time_offset_dtor(offset); in _php_gettimeofday()
|
/PHP-8.0/ext/iconv/tests/ |
H A D | iconv_strpos.phpt | 9 function foo($haystk, $needle, $offset, $to_charset = false, $from_charset = false) 15 var_dump(strpos($haystk, $needle, $offset)); 21 var_dump(iconv_strpos($haystk, $needle, $offset, $to_charset)); 23 var_dump(iconv_strpos($haystk, $needle, $offset)); 51 strpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack) 52 iconv_strpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
|
/PHP-8.0/Zend/ |
H A D | zend_attributes.c | 70 static zend_attribute *get_attribute(HashTable *attributes, zend_string *lcname, uint32_t offset) in get_attribute() argument 76 if (attr->offset == offset && zend_string_equals(attr->lcname, lcname)) { in get_attribute() 85 …d_attribute *get_attribute_str(HashTable *attributes, const char *str, size_t len, uint32_t offset) in get_attribute_str() argument 91 if (attr->offset == offset && ZSTR_LEN(attr->lcname) == len) { in get_attribute_str() 112 …ttribute *zend_get_parameter_attribute(HashTable *attributes, zend_string *lcname, uint32_t offset) in zend_get_parameter_attribute() argument 114 return get_attribute(attributes, lcname, offset + 1); in zend_get_parameter_attribute() 117 …nd_get_parameter_attribute_str(HashTable *attributes, const char *str, size_t len, uint32_t offset) in zend_get_parameter_attribute_str() argument 119 return get_attribute_str(attributes, str, len, offset + 1); in zend_get_parameter_attribute_str() 171 if (other != attr && other->offset == attr->offset) { in zend_is_attribute_repeated() 203 …e **attributes, zend_string *name, uint32_t argc, uint32_t flags, uint32_t offset, uint32_t lineno) in zend_add_attribute() argument [all …]
|
/PHP-8.0/ext/opcache/Optimizer/ |
H A D | optimize_temp_vars_5.c | 45 int offset = op_array->last_var; in zend_optimize_temporary_variables() local 69 start_of_T[VAR_NUM(opline->result.var) - offset] = opline; in zend_optimize_temporary_variables() 82 currT = VAR_NUM(opline->op1.var) - offset; in zend_optimize_temporary_variables() 96 opline->op1.var = NUM_VAR(var + offset); in zend_optimize_temporary_variables() 138 opline->op1.var = NUM_VAR(map_T[currT] + offset); in zend_optimize_temporary_variables() 143 currT = VAR_NUM(opline->op2.var) - offset; in zend_optimize_temporary_variables() 149 opline->op2.var = NUM_VAR(map_T[currT] + offset); in zend_optimize_temporary_variables() 153 currT = VAR_NUM(opline->result.var) - offset; in zend_optimize_temporary_variables() 163 opline->result.var = NUM_VAR(map_T[currT] + offset); in zend_optimize_temporary_variables() 178 opline->result.var = NUM_VAR(i + offset); in zend_optimize_temporary_variables()
|