Home
last modified time | relevance | path

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

123

/PHP-7.4/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.4/ext/filter/
H A Dsanitizing_filters.c167 if ((*map)[str[i]]) { in filter_map_apply()
310 filter_map map; in php_filter_email() local
312 filter_map_init(&map); in php_filter_email()
314 filter_map_apply(value, &map); in php_filter_email()
324 filter_map map; in php_filter_url() local
326 filter_map_init(&map); in php_filter_url()
328 filter_map_apply(value, &map); in php_filter_url()
337 filter_map map; in php_filter_number_int() local
339 filter_map_init(&map); in php_filter_number_int()
350 filter_map map; in php_filter_number_float() local
[all …]
/PHP-7.4/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.4/ext/spl/tests/
H A Dobserver_010.phpt8 $map = new SplObjectStorage();
9 $map[$a] = 'foo';
10 var_dump($map[$b] ?? null);
11 var_dump($map[$a] ?? null);
/PHP-7.4/ext/standard/
H A Dpack.c94 *output++ = v[map[i]]; in php_pack()
542 map = big_endian_short_map; in PHP_FUNCTION()
544 map = little_endian_short_map; in PHP_FUNCTION()
569 map = big_endian_long_map; in PHP_FUNCTION()
571 map = little_endian_long_map; in PHP_FUNCTION()
589 map = big_endian_longlong_map; in PHP_FUNCTION()
701 cresult[map[i]] = *data++; in php_unpack()
1039 map = big_endian_short_map; in PHP_FUNCTION()
1041 map = little_endian_short_map; in PHP_FUNCTION()
1075 map = big_endian_long_map; in PHP_FUNCTION()
[all …]
/PHP-7.4/ext/fileinfo/libmagic/
H A Dapprentice.c400 ml->map = idx == 0 ? map : NULL; in add_mlist()
544 efree(map); in apprentice_unmap()
1381 &map->magic[j], &map->nmagic[j]) == -1) { in apprentice_load()
1395 return map; in apprentice_load()
3037 map->p = CAST(void *, emalloc(map->len)); in apprentice_map()
3086 map->magic[0] = CAST(struct magic *, map->p) + 1; in apprentice_map()
3094 map->magic[i + 1] = map->magic[i] + map->nmagic[i]; in apprentice_map()
3104 byteswap(map->magic[i], map->nmagic[i]); in apprentice_map()
3157 map->magic[0] = CAST(struct magic *, map->p) + 1;
3165 map->magic[i + 1] = map->magic[i] + map->nmagic[i];
[all …]
/PHP-7.4/ext/fileinfo/tests/
H A Dbug78987.phpt13 $map = array(
29 printf("%-8d => %s\n", $size, $m <= $map[$size] ? "ok" : "$m");
/PHP-7.4/ext/soap/tests/
H A Dbug48557.phpt11 function test($map) {
12 var_dump($map, $map[1], $map[2]);die;
/PHP-7.4/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.c253 mbfilter_conv_map_tbl(int c, int *w, const unsigned short map[][3], int n) in mbfilter_conv_map_tbl()
258 if (map[i][0] <= c && c <= map[i][1]) { in mbfilter_conv_map_tbl()
259 *w = c - map[i][0] + map[i][2]; in mbfilter_conv_map_tbl()
268 mbfilter_conv_r_map_tbl(int c, int *w, const unsigned short map[][3], int n) in mbfilter_conv_r_map_tbl()
273 if (map[i][2] <= c && c <= map[i][2] - map[i][0] + map[i][1]) { in mbfilter_conv_r_map_tbl()
274 *w = c + map[i][0] - map[i][2]; in mbfilter_conv_r_map_tbl()
/PHP-7.4/ext/opcache/Optimizer/
H A Dcompact_literals.c122 int i, j, n, *map, cache_size; in zend_optimizer_compact_literals() local
335 map[i] = l_null; in zend_optimizer_compact_literals()
346 map[i] = l_false; in zend_optimizer_compact_literals()
357 map[i] = l_true; in zend_optimizer_compact_literals()
364 map[i] = j; in zend_optimizer_compact_literals()
383 map[i] = j; in zend_optimizer_compact_literals()
400 map[i] = Z_LVAL_P(pos); in zend_optimizer_compact_literals()
402 map[i] = j; in zend_optimizer_compact_literals()
439 map[i] = j; in zend_optimizer_compact_literals()
472 map[i] = l_empty_arr; in zend_optimizer_compact_literals()
[all …]
H A Dzend_call_graph.c283 zend_call_info **map, *call; in zend_build_call_map() local
289 map = zend_arena_calloc(arena, sizeof(zend_call_info *), op_array->last); in zend_build_call_map()
292 map[call->caller_init_opline - op_array->opcodes] = call; in zend_build_call_map()
294 map[call->caller_call_opline - op_array->opcodes] = call; in zend_build_call_map()
298 map[call->arg_info[i].opline - op_array->opcodes] = call; in zend_build_call_map()
302 return map; in zend_build_call_map()
H A Dzend_cfg.h90 uint32_t *map; member
H A Dscdf.c121 int block_num = ssa->cfg.map[i]; in scdf_solve()
204 def_block = cfg->map[op_num]; in kept_alive_by_loop_var_free()
H A Dblock_pass.c163 return cfg->map[ZEND_OFFSET_TO_OPLINE_NUM(op_array, opline, Z_LVAL_P(zv))]; in get_const_switch_target()
1035 uint32_t *map; in assemble_code_blocks() local
1038 map = (uint32_t *)do_alloca(sizeof(uint32_t) * op_array->last_try_catch, use_heap); in assemble_code_blocks()
1040 if (blocks[cfg->map[op_array->try_catch_array[i].try_op]].flags & ZEND_BB_REACHABLE) { in assemble_code_blocks()
1041 map[i] = j; in assemble_code_blocks()
1042 … op_array->try_catch_array[j].try_op = blocks[cfg->map[op_array->try_catch_array[i].try_op]].start; in assemble_code_blocks()
1044 …op_array->try_catch_array[j].catch_op = blocks[cfg->map[op_array->try_catch_array[i].catch_op]].st… in assemble_code_blocks()
1075 opline->op2.num = map[opline->op2.num]; in assemble_code_blocks()
1081 free_alloca(map, use_heap); in assemble_code_blocks()
1092 memset(cfg->map, -1, sizeof(int) * op_array->last); in assemble_code_blocks()
[all …]
/PHP-7.4/ext/mbstring/ucgendat/
H A Ducgendat.php479 function generateCaseMPH(string $name, array $map) { argument
481 list($gTable, $table) = generateMPH($map, $fast = false);
546 function tryGenerateMPH(array $map, int $gSize) { argument
547 $tableSize = count($map);
552 foreach ($map as $k => $v) {
624 function generateMPH(array $map, bool $fast) { argument
628 $m = (int) (count($map) / $lambda);
629 $tmpMph = tryGenerateMPH($map, $m);
637 $m = (int) (count($map) / 7.0);
639 $tmpMph = tryGenerateMPH($map, $m);
/PHP-7.4/ext/standard/html_tables/
H A Dhtml_table_gen.php186 $map = array(); variable
190 $map[] = array($matches[1], $matches[2]);
194 foreach ($map as $v) { $mappy[hexdec($v[0])] = hexdec($v[1]); }
329 $map = array(); variable
333 $map[] = array($matches[1], $matches[2], rtrim($matches[3]));
337 foreach ($map as $v) {
/PHP-7.4/ext/fileinfo/
H A Dlibmagic.patch123 ml->map = idx == 0 ? map : NULL;
246 - if (map->p && map->p != MAP_FAILED)
247 - (void)munmap(map->p, map->len);
253 - free(map);
254 + efree(map);
754 - if (read(fd, map->p, map->len) != (ssize_t)map->len) {
756 + map->p = CAST(void *, emalloc(map->len));
814 + map->magic[0] = CAST(struct magic *, map->p) + 1;
822 + map->magic[i + 1] = map->magic[i] + map->nmagic[i];
833 + byteswap(map->magic[i], map->nmagic[i]);
[all …]
/PHP-7.4/sapi/phpdbg/
H A Dphpdbg_list.h48 void *map; member
/PHP-7.4/Zend/
H A Dzend_alloc.c1097 chunk->map[page_num] = 0;
1297 info = chunk->map[page_num];
1397 info = chunk->map[page_num];
1922 info = chunk->map[page_num];
1926 info = chunk->map[page_num];
1951 info = chunk->map[page_num];
1955 info = chunk->map[page_num];
1976 info = chunk->map[i];
1987 chunk->map[i] = ZEND_MM_SRUN(bin_num);
2049 if (p->map[i] & ZEND_MM_IS_SRUN) {
[all …]
/PHP-7.4/ext/pcre/pcre2lib/
H A Dpcre2_printint.c648 uint8_t *map; in pcre2_printint() local
675 map = (uint8_t *)ccode; in pcre2_printint()
679 for (i = 0; i < 32; i++) inverted_map[i] = 255 ^ map[i]; in pcre2_printint()
680 map = inverted_map; in pcre2_printint()
685 if ((map[i/8] & (1u << (i&7))) != 0) in pcre2_printint()
689 if ((map[j/8] & (1u << (j&7))) == 0) break; in pcre2_printint()
/PHP-7.4/ext/standard/tests/strings/
H A Dhtml_entity_decode_html4.phpt5 $map = array(
260 foreach ($map as $str) {
/PHP-7.4/ext/soap/
H A Dphp_encoding.h180 soapMappingPtr map; member
/PHP-7.4/ext/mysqli/tests/
H A Dmysqli_stmt_bind_result_zerofill.phpt73 We map those to PHP numeric types -

Completed in 68 milliseconds

123