/php-src/ext/dom/lexbor/lexbor/core/ |
H A D | in.c | 73 node->offset = last_node->offset + (last_node->end - last_node->begin); in lexbor_in_node_make() 76 node->offset = 0; in lexbor_in_node_make() 122 new_node->offset = node->offset + (pos - node->begin); in lexbor_in_node_split() 160 const lxb_char_t *pos, size_t offset) in lexbor_in_node_pos_up() argument 163 pos = pos + offset; in lexbor_in_node_pos_up() 181 offset = pos - node->end; in lexbor_in_node_pos_up() 193 const lxb_char_t *pos, size_t offset) in lexbor_in_node_pos_down() argument 196 pos = pos - offset; in lexbor_in_node_pos_down() 214 offset = node->begin - pos; in lexbor_in_node_pos_down()
|
/php-src/ext/standard/tests/strings/ |
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 ($haystack) 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)
|
H A D | strpos.phpt | 69 1, // offset = 1 70 "string", // offset as string, converts to zero 71 "", // offset as string, converts to zero 228 Position of 'Hello' with offset '1' is => int(74) 229 Position of 'Hello' with offset 'string' is => 231 Position of 'Hello' with offset '' is => 233 Position of 'Hello' with offset '0' is => int(0) 234 Position of 'Hello' with offset '1' is => int(74) 235 Position of 'Hello' with offset '' is => int(0) 236 Position of 'Hello' with offset 'string12' is => [all …]
|
/php-src/Zend/tests/offsets/ |
H A D | runtime_compile_time_offset_access.phpt | 15 function makeTestFile($container, $offset) { 16 $offset_p = zend_test_var_export($offset); 39 foreach ($offsets as $offset) { 40 …$error = zend_test_var_export($container_orig) . '[' . zend_test_var_export($offset) . '] has diff… 41 file_put_contents($const_dim_filename, makeTestFile($container_orig, $offset)); 48 $dimension = $offset; 61 …DIRECTORY_SEPARATOR . "debug_{$failuresNb}_test_case.txt", makeTestFile($container_orig, $offset));
|
/php-src/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-src/Zend/tests/ |
H A D | resource_key.phpt | 24 Warning: Resource ID#%d used as offset, casting to integer (%d) in %s on line %d 26 Warning: Resource ID#%d used as offset, casting to integer (%d) in %s on line %d 28 Warning: Resource ID#%d used as offset, casting to integer (%d) in %s on line %d 30 Warning: Resource ID#%d used as offset, casting to integer (%d) in %s on line %d 33 Warning: Resource ID#%d used as offset, casting to integer (%d) in %s on line %d 36 Warning: Resource ID#%d used as offset, casting to integer (%d) in %s on line %d
|
H A D | illegal_offset_unset_isset_empty.phpt | 2 Using unset(), isset(), empty() with an illegal array offset throws 25 Cannot unset offset of type array on array 26 Cannot access offset of type array in isset or empty 27 Cannot access offset of type array in isset or empty
|
H A D | unset_non_array.phpt | 49 // And now repeat the same with a nested offset. 100 Cannot unset offset in a non-array variable 101 Cannot unset offset in a non-array variable 102 Cannot unset offset in a non-array variable 109 Cannot unset offset in a non-array variable 110 Cannot unset offset in a non-array variable 111 Cannot unset offset in a non-array variable 112 Cannot use string offset as an array
|
/php-src/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-src/ext/standard/tests/file/ |
H A D | bug38450_2.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 | include_userstream_002.phpt | 54 function stream_seek($offset, $whence) 57 return fseek($this->stream, $offset, $whence); 61 if ($offset < $this->data && $offset >= 0) { 62 $this->pos = $offset; 69 if ($offset >= 0) { 70 $this->pos += $offset; 77 if (strlen($this->data) + $offset >= 0) { 78 $this->pos = strlen($this->data) + $offset;
|
H A D | fopencookie.phpt | 46 function stream_seek($offset, $whence) 50 if ($offset < strlen($this->data) && $offset >= 0) { 51 $this->position = $offset; 58 if ($offset >= 0) { 59 $this->position += $offset; 66 if (strlen($this->data) + $offset >= 0) { 67 $this->position = strlen($this->data) + $offset;
|
H A D | bug38450_3.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/mysqli/tests/ |
H A D | mysqli_stmt_bind_param_type_juggling.phpt | 16 printf("[%03d + 1] [%d] %s\n", $offset, mysqli_errno($link), mysqli_error($link)); 23 printf("[%03d + 2] [%d] %s\n", $offset, mysqli_errno($link), mysqli_error($link)); 28 printf("[%03d + 3] [%d] %s\n", $offset, mysqli_errno($link), mysqli_error($link)); 33 … printf("[%03d + 4] [%d] %s\n", $offset, mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt)); 38 … printf("[%03d + 5] [%d] %s\n", $offset, mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt)); 43 … printf("[%03d + 6] [%d] %s\n", $offset, mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt)); 48 … printf("[%03d + 7] [%d] %s\n", $offset, mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt)); 52 … printf("[%03d + 8] [%d] %s\n", $offset, mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt)); 58 printf("[%03d + 9] [%d] %s\n", $offset, mysqli_errno($link), mysqli_error($link)); 69 $offset, $bind_value1, $bind_value1, [all …]
|
H A D | bug42378.phpt | 19 $offset, 29 $offset + 1, 42 $offset + 2, 55 $offset, 68 $offset + 1, 75 $offset + 2, 82 $offset + 3, 92 $offset + 4, 99 $offset + 5, 106 $offset + 6, [all …]
|
/php-src/ext/dom/ |
H A D | nodelist.c | 257 ZVAL_DEREF(offset); in dom_modern_nodelist_get_index() 259 if (Z_TYPE_P(offset) == IS_LONG) { in dom_modern_nodelist_get_index() 261 ret.lval = Z_LVAL_P(offset); in dom_modern_nodelist_get_index() 262 } else if (Z_TYPE_P(offset) == IS_DOUBLE) { in dom_modern_nodelist_get_index() 264 ret.lval = zend_dval_to_lval_safe(Z_DVAL_P(offset)); in dom_modern_nodelist_get_index() 265 } else if (Z_TYPE_P(offset) == IS_STRING) { in dom_modern_nodelist_get_index() 267 if (ZEND_HANDLE_NUMERIC(Z_STR_P(offset), lval)) { in dom_modern_nodelist_get_index() 272 ret.str = Z_STR_P(offset); in dom_modern_nodelist_get_index() 283 if (UNEXPECTED(!offset)) { in dom_modern_nodelist_read_dimension() 288 dom_nodelist_dimension_index index = dom_modern_nodelist_get_index(offset); in dom_modern_nodelist_read_dimension() [all …]
|
/php-src/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-src/Zend/Optimizer/ |
H A D | optimize_temp_vars_5.c | 45 int offset = op_array->last_var; in zend_optimize_temporary_variables() local 68 start_of_T[VAR_NUM(opline->result.var) - offset] = opline; in zend_optimize_temporary_variables() 80 currT = VAR_NUM(opline->op1.var) - offset; in zend_optimize_temporary_variables() 93 opline->op1.var = NUM_VAR(var + offset); in zend_optimize_temporary_variables() 134 opline->op1.var = NUM_VAR(map_T[currT] + offset); in zend_optimize_temporary_variables() 139 currT = VAR_NUM(opline->op2.var) - offset; in zend_optimize_temporary_variables() 144 opline->op2.var = NUM_VAR(map_T[currT] + offset); in zend_optimize_temporary_variables() 148 currT = VAR_NUM(opline->result.var) - offset; in zend_optimize_temporary_variables() 154 opline->result.var = NUM_VAR(map_T[currT] + offset); in zend_optimize_temporary_variables()
|
/php-src/TSRM/ |
H A D | TSRM.h | 95 TSRM_API ts_rsrc_id ts_allocate_fast_id(ts_rsrc_id *rsrc_id, size_t *offset, size_t size, ts_alloca… 168 #define TSRMG_FAST(offset, type, element) (TSRMG_FAST_BULK(offset, type)->element) argument 169 #define TSRMG_FAST_BULK(offset, type) ((type) (((char*) tsrm_get_ls_cache())+(offset))) argument 173 #define TSRMG_FAST_STATIC(offset, type, element) (TSRMG_FAST_BULK_STATIC(offset, type)->element) argument 174 #define TSRMG_FAST_BULK_STATIC(offset, type) ((type) (((char*) TSRMLS_CACHE)+(offset))) argument
|
/php-src/Zend/ |
H A D | zend_attributes.c | 145 static zend_attribute *get_attribute(HashTable *attributes, zend_string *lcname, uint32_t offset) in get_attribute() argument 151 if (attr->offset == offset && zend_string_equals(attr->lcname, lcname)) { in get_attribute() 160 …d_attribute *get_attribute_str(HashTable *attributes, const char *str, size_t len, uint32_t offset) in get_attribute_str() argument 166 if (attr->offset == offset && zend_string_equals_cstr(attr->lcname, str, len)) { in get_attribute_str() 185 …ttribute *zend_get_parameter_attribute(HashTable *attributes, zend_string *lcname, uint32_t offset) in zend_get_parameter_attribute() argument 187 return get_attribute(attributes, lcname, offset + 1); in zend_get_parameter_attribute() 190 …nd_get_parameter_attribute_str(HashTable *attributes, const char *str, size_t len, uint32_t offset) in zend_get_parameter_attribute_str() argument 192 return get_attribute_str(attributes, str, len, offset + 1); in zend_get_parameter_attribute_str() 244 if (other != attr && other->offset == attr->offset) { in zend_is_attribute_repeated() 276 …e **attributes, zend_string *name, uint32_t argc, uint32_t flags, uint32_t offset, uint32_t lineno) in zend_add_attribute() argument [all …]
|
/php-src/ext/pdo/tests/ |
H A D | pdo_035.phpt | 31 $offsetRef = &$offset; 35 var_dump(isset($result[$offset])); 38 var_dump(empty($result[$offset])); 44 var_dump($result[$offset]); 48 var_dump(isset($result->{$offset})); 51 var_dump(empty($result->{$offset})); 57 var_dump($result->{$offset}); 255 Cannot write to PDORow offset 256 Cannot append to PDORow offset 259 Cannot append to PDORow offset [all …]
|
/php-src/main/streams/ |
H A D | php_stream_mmap.h | 47 size_t offset; member 68 PHPAPI char *_php_stream_mmap_range(php_stream *stream, size_t offset, size_t length, php_stream_mm… 69 #define php_stream_mmap_range(stream, offset, length, mode, mapped_len) _php_stream_mmap_range((str… argument
|
/php-src/tests/classes/ |
H A D | array_access_013.phpt | 8 …public function offsetExists($offset): bool { throw new Exception(__METHOD__); return false; } 9 …public function offsetGet($offset): mixed { throw new Exception(__METHOD__); return $offse… 10 public function offsetSet($offset, $data ): void { throw new Exception(__METHOD__); } 11 public function offsetUnset($offset): void { throw new Exception(__METHOD__); }
|
/php-src/ext/intl/tests/ |
H A D | bug74264.phpt | 7 foreach (range(-5, -1) as $offset) { 9 grapheme_strrpos('déjàààà', 'à', $offset), 10 grapheme_strripos('DÉJÀÀÀÀ', 'à', $offset)
|
/php-src/ext/mbstring/tests/ |
H A D | bug43840.phpt | 10 * Multibyte string was not returning error message until offset was passed the 49 mb_strpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack) 51 mb_strpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack) 55 mb_strpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack) 57 mb_strpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack) 61 mb_strpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack) 63 mb_strpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
|