Home
last modified time | relevance | path

Searched refs:map (Results 1 – 25 of 73) sorted by relevance

123

/PHP-7.2/ext/mbstring/libmbfl/tests/conv_encoding.tests/
H A Dgen_exp.c21 map->n = 0; in mappings_init()
22 map->nalloc = 0; in mappings_init()
23 map->entries = 0; in mappings_init()
28 if (map->entries) in mappings_destroy()
34 if (map->n >= map->nalloc) { in mappings_grow()
48 map->nalloc = n; in mappings_grow()
68 size_t n = map->n - i, a = sizeof(*map->entries) * n; in mappings_add()
71 memmove(&map->entries[i + 1], &map->entries[i], a); in mappings_add()
73 ++map->n; in mappings_add()
89 memmove(&map->entries[i + 2], &map->entries[i + 1], a); in mappings_add()
[all …]
/PHP-7.2/ext/mbstring/tests/
H A Dbug40685.phpt7 $map = array(0, 0x10FFFF, 0, 0xFFFFFF);
8 var_dump(mb_decode_numericentity('&', $map, 'UTF-8'));
9 var_dump(mb_decode_numericentity('&&&', $map, 'UTF-8'));
10 var_dump(mb_decode_numericentity('&#', $map, 'UTF-8'));
11 var_dump(mb_decode_numericentity('&#x', $map, 'UTF-8'));
12 var_dump(mb_decode_numericentity('&#61', $map, 'UTF-8'));
13 var_dump(mb_decode_numericentity('&#x3d', $map, 'UTF-8'));
14 var_dump(mb_decode_numericentity('=', $map, 'UTF-8'));
15 var_dump(mb_decode_numericentity('=', $map, 'UTF-8'));
H A Dbug30549.phpt11 function test($enc, $map) {
14 foreach($map as $fromc => $toc) {
/PHP-7.2/ext/filter/
H A Dsanitizing_filters.c170 if ((*map)[str[i]]) { in filter_map_apply()
313 filter_map map; in php_filter_email() local
315 filter_map_init(&map); in php_filter_email()
317 filter_map_apply(value, &map); in php_filter_email()
327 filter_map map; in php_filter_url() local
329 filter_map_init(&map); in php_filter_url()
331 filter_map_apply(value, &map); in php_filter_url()
340 filter_map map; in php_filter_number_int() local
342 filter_map_init(&map); in php_filter_number_int()
353 filter_map map; in php_filter_number_float() local
[all …]
/PHP-7.2/ext/gd/
H A Dgdcache.c156 cacheTest( void *map, void *key ) in cacheTest() argument
158 return (((key_value_t *)map)->key == *(int *)key); in cacheTest()
164 key_value_t *map; in cacheFetch() local
166 map = (key_value_t *)malloc(sizeof(key_value_t)); in cacheFetch()
167 if (map == NULL) { in cacheFetch()
170 map->key = *(int *)key; in cacheFetch()
171 map->value = 3; in cacheFetch()
174 return (void *)map; in cacheFetch()
178 cacheRelease( void *map) in cacheRelease() argument
180 free( (char *)map ); in cacheRelease()
/PHP-7.2/ext/gd/libgd/
H A Dgdcache.c159 cacheTest (void *map, void *key) in cacheTest() argument
161 return (((key_value_t *) map)->key == *(int *) key); in cacheTest()
167 key_value_t *map; in cacheFetch() local
169 map = (key_value_t *) gdMalloc (sizeof (key_value_t)); in cacheFetch()
170 map->key = *(int *) key; in cacheFetch()
171 map->value = 3; in cacheFetch()
174 return (void *) map; in cacheFetch()
178 cacheRelease (void *map) in cacheRelease() argument
180 gdFree ((char *) map); in cacheRelease()
/PHP-7.2/ext/spl/tests/
H A Dobserver_010.phpt9 $map = new SplObjectStorage();
10 $map[$a] = 'foo';
11 var_dump($map[$b] ?? null);
12 var_dump($map[$a] ?? null);
/PHP-7.2/ext/standard/
H A Dpack.c95 *output++ = v[map[i]]; in php_pack()
538 map = big_endian_short_map; in PHP_FUNCTION()
540 map = little_endian_short_map; in PHP_FUNCTION()
565 map = big_endian_long_map; in PHP_FUNCTION()
567 map = little_endian_long_map; in PHP_FUNCTION()
585 map = big_endian_longlong_map; in PHP_FUNCTION()
697 cresult[map[i]] = *data++; in php_unpack()
1035 map = big_endian_short_map; in PHP_FUNCTION()
1037 map = little_endian_short_map; in PHP_FUNCTION()
1071 map = big_endian_long_map; in PHP_FUNCTION()
[all …]
/PHP-7.2/ext/fileinfo/libmagic/
H A Dapprentice.c397 ml->map = idx == 0 ? map : NULL; in add_mlist()
541 efree(map); in apprentice_unmap()
1325 &map->magic[j], &map->nmagic[j]) == -1) { in apprentice_load()
1339 return map; in apprentice_load()
2868 return map; in apprentice_buf()
2983 map->magic[0] = CAST(struct magic *, map->p) + 1; in apprentice_map()
2991 map->magic[i + 1] = map->magic[i] + map->nmagic[i]; in apprentice_map()
3001 byteswap(map->magic[i], map->nmagic[i]); in apprentice_map()
3053 map->magic[0] = CAST(struct magic *, map->p) + 1; in check_buffer()
3061 map->magic[i + 1] = map->magic[i] + map->nmagic[i]; in check_buffer()
[all …]
/PHP-7.2/ext/opcache/Optimizer/
H A Dcompact_literals.c364 map[i] = l_null; in zend_optimizer_compact_literals()
366 map[i] = j; in zend_optimizer_compact_literals()
383 map[i] = l_false; in zend_optimizer_compact_literals()
394 map[i] = l_true; in zend_optimizer_compact_literals()
398 map[i] = Z_LVAL_P(pos); in zend_optimizer_compact_literals()
400 map[i] = j; in zend_optimizer_compact_literals()
412 map[i] = Z_LVAL_P(pos); in zend_optimizer_compact_literals()
414 map[i] = j; in zend_optimizer_compact_literals()
464 map[i] = j; in zend_optimizer_compact_literals()
500 map[i] = l_empty_arr; in zend_optimizer_compact_literals()
[all …]
H A Dzend_call_graph.c274 zend_call_info **map, *call; in zend_build_call_map() local
280 map = zend_arena_calloc(arena, sizeof(zend_call_info *), op_array->last); in zend_build_call_map()
283 map[call->caller_init_opline - op_array->opcodes] = call; in zend_build_call_map()
284 map[call->caller_call_opline - op_array->opcodes] = call; in zend_build_call_map()
287 map[call->arg_info[i].opline - op_array->opcodes] = call; in zend_build_call_map()
291 return map; in zend_build_call_map()
H A Dscdf.c121 int block_num = ssa->cfg.map[i]; in scdf_solve()
193 uint32_t start_block = cfg->map[live_range->start]; in kept_alive_by_live_range()
194 uint32_t end_block = cfg->map[live_range->end]; in kept_alive_by_live_range()
H A Dblock_pass.c161 return cfg->map[ZEND_OFFSET_TO_OPLINE_NUM(op_array, opline, Z_LVAL_P(zv))]; in get_const_switch_target()
995 uint32_t *map; in assemble_code_blocks() local
1001 map[i] = j; in assemble_code_blocks()
1035 opline->op2.num = map[opline->op2.num]; in assemble_code_blocks()
1041 free_alloca(map, use_heap); in assemble_code_blocks()
1047 uint32_t *map; in assemble_code_blocks() local
1069 map[i] = j; in assemble_code_blocks()
1085 opline->op2.num = map[opline->op2.num]; in assemble_code_blocks()
1094 free_alloca(map, use_heap); in assemble_code_blocks()
1115 memset(cfg->map, -1, sizeof(int) * op_array->last); in assemble_code_blocks()
[all …]
/PHP-7.2/ext/soap/tests/
H A Dbug48557.phpt11 function test($map) {
12 var_dump($map, $map[1], $map[2]);die;
/PHP-7.2/ext/mbstring/libmbfl/filters/
H A Dmbfilter_sjis_mobile.h67 int mbfilter_conv_map_tbl(int c, int *w, const unsigned short map[][3], int n);
68 int mbfilter_conv_r_map_tbl(int c, int *w, const unsigned short map[][3], int n);
H A Dmbfilter_sjis_mobile.c247 mbfilter_conv_map_tbl(int c, int *w, const unsigned short map[][3], int n) in mbfilter_conv_map_tbl()
252 if (map[i][0] <= c && c <= map[i][1]) { in mbfilter_conv_map_tbl()
253 *w = c - map[i][0] + map[i][2]; in mbfilter_conv_map_tbl()
262 mbfilter_conv_r_map_tbl(int c, int *w, const unsigned short map[][3], int n) in mbfilter_conv_r_map_tbl()
267 if (map[i][2] <= c && c <= map[i][2] - map[i][0] + map[i][1]) { in mbfilter_conv_r_map_tbl()
268 *w = c + map[i][0] - map[i][2]; in mbfilter_conv_r_map_tbl()
/PHP-7.2/ext/fileinfo/
H A Dlibmagic.patch122 ml->map = idx == 0 ? map : NULL;
245 - if (map->p && map->p != MAP_FAILED)
246 - (void)munmap(map->p, map->len);
252 - free(map);
253 + efree(map);
267 if (ml->map)
726 - if (read(fd, map->p, map->len) != (ssize_t)map->len) {
784 + map->magic[0] = CAST(struct magic *, map->p) + 1;
792 + map->magic[i + 1] = map->magic[i] + map->nmagic[i];
803 + byteswap(map->magic[i], map->nmagic[i]);
[all …]
/PHP-7.2/ext/standard/html_tables/
H A Dhtml_table_gen.php187 $map = array(); variable
191 $map[] = array($matches[1], $matches[2]);
195 foreach ($map as $v) { $mappy[hexdec($v[0])] = hexdec($v[1]); }
330 $map = array(); variable
334 $map[] = array($matches[1], $matches[2], rtrim($matches[3]));
338 foreach ($map as $v) {
/PHP-7.2/ext/mbstring/oniguruma/src/
H A Dregenc.c472 const OnigPairCaseFoldCodes map[], in onigenc_apply_all_case_fold_with_map() argument
483 code = map[i].to; in onigenc_apply_all_case_fold_with_map()
484 r = (*f)(map[i].from, &code, 1, arg); in onigenc_apply_all_case_fold_with_map()
487 code = map[i].from; in onigenc_apply_all_case_fold_with_map()
488 r = (*f)(map[i].to, &code, 1, arg); in onigenc_apply_all_case_fold_with_map()
500 const OnigPairCaseFoldCodes map[], in onigenc_get_case_fold_codes_by_str_with_map() argument
561 if (*p == map[i].from) { in onigenc_get_case_fold_codes_by_str_with_map()
564 items[0].code[0] = map[i].to; in onigenc_get_case_fold_codes_by_str_with_map()
567 else if (*p == map[i].to) { in onigenc_get_case_fold_codes_by_str_with_map()
570 items[0].code[0] = map[i].from; in onigenc_get_case_fold_codes_by_str_with_map()
H A Dregcomp.c1927 GroupNumRemap* map; in disable_noname_group_capture() local
1932 map[i].new_val = 0; in disable_noname_group_capture()
4408 if (map->map[c] == 0) { in add_char_opt_map_info()
4409 map->map[c] = 1; in add_char_opt_map_info()
4484 if (add->map[i]) in alt_merge_opt_map_info()
4485 to->map[i] = 1; in alt_merge_opt_map_info()
4487 if (to->map[i]) in alt_merge_opt_map_info()
4574 select_opt_map_info(&to->map, &add->map); in concat_left_node_opt_info()
4586 alt_merge_opt_map_info(env->enc, &to->map, &add->map); in alt_merge_node_opt_info()
4775 copy_opt_map_info(&opt->map, &nopt.map); in optimize_node_left()
[all …]
/PHP-7.2/Zend/
H A Dzend_stream.c80 if (stream->mmap.map) { in zend_stream_unmap()
81 munmap(stream->mmap.map, stream->mmap.len + ZEND_MMAP_AHEAD); in zend_stream_unmap()
89 stream->mmap.map = 0; in zend_stream_unmap()
231 file_handle->handle.stream.mmap.map = *buf; in zend_stream_fixup()
244 file_handle->handle.stream.mmap.map = 0; in zend_stream_fixup()
261 file_handle->handle.stream.mmap.map = 0; in zend_stream_fixup()
H A Dzend_alloc.c1117 chunk->map[page_num] = 0;
1317 info = chunk->map[page_num];
1417 info = chunk->map[page_num];
1891 info = chunk->map[page_num];
1895 info = chunk->map[page_num];
1920 info = chunk->map[page_num];
1924 info = chunk->map[page_num];
1945 info = chunk->map[i];
1956 chunk->map[i] = ZEND_MM_SRUN(bin_num);
2018 if (p->map[i] & ZEND_MM_IS_SRUN) {
[all …]
H A Dzend_stream.h50 void *map; member
/PHP-7.2/sapi/phpdbg/
H A Dphpdbg_list.h48 void *map; member
/PHP-7.2/ext/pcre/pcrelib/
H A Dpcre_printint.c648 pcre_uint8 *map; in pcre_printint() local
675 map = (pcre_uint8 *)ccode; in pcre_printint()
678 for (i = 0; i < 32; i++) inverted_map[i] = ~map[i]; in pcre_printint()
679 map = inverted_map; in pcre_printint()
684 if ((map[i/8] & (1 << (i&7))) != 0) in pcre_printint()
688 if ((map[j/8] & (1 << (j&7))) == 0) break; in pcre_printint()

Completed in 107 milliseconds

123