Home
last modified time | relevance | path

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

1234

/PHP-8.2/Zend/tests/weakrefs/
H A Dweakmap_basic_map_behavior.phpt6 $map = new WeakMap;
7 var_dump(count($map));
14 $map[$obj] = $obj2;
16 var_dump($map);
21 $map[$obj] = 42;
22 var_dump($map);
28 var_dump($map);
34 var_dump($map);
40 var_dump($map);
56 $map[$obj2]++;
[all …]
H A Dweakmap_weakness.phpt6 $map = new WeakMap;
10 var_dump($map);
13 $map[$obj] = 2;
14 var_dump($map);
17 var_dump($map);
30 var_dump($map);
34 $map[$obj] = 3;
35 unset($map);
54 unset($map);
58 $map[$map] = $map;
[all …]
H A Dweakmap_object_reference.phpt6 $map = new WeakMap;
10 $map[$obj] = 1;
11 var_dump(count($map));
12 var_dump($map);
13 var_dump(isset($map[$obj]));
14 var_dump(!empty($map[$obj]));
15 var_dump($map[$obj]);
H A Dweakmap_error_conditions.phpt6 $map = new WeakMap;
8 $map[1] = 2;
13 var_dump($map[1]);
18 isset($map[1]);
23 unset($map[1]);
29 $map[] = 1;
34 $map[][1] = 1;
44 var_dump($map->prop);
46 unset($map->prop);
49 $map->prop = 1;
[all …]
H A Dweakmap_iteration.phpt6 $map = new WeakMap;
9 foreach ($map as $key => $value) {
17 $map[$obj0] = 0;
18 $map[$obj1] = 1;
19 $map[$obj2] = 2;
20 foreach ($map as $key => $value) {
25 foreach ($map as $key => $value) {
31 foreach ($map as $key => &$value) {
34 var_dump($map);
H A Dweakmap_multiple_weakrefs.phpt9 $map = new WeakMap;
10 $map[$obj] = 1;
16 var_dump($ref->get(), $map, $map2, $map3);
18 var_dump($ref->get(), $map, $map2, $map3);
19 unset($ref, $map, $map2);
23 $map = new WeakMap;
24 $map[$obj] = 1;
29 unset($ref, $map, $map2, $map3);
H A Dweakmap_nested.phpt6 $map = new WeakMap;
8 $map[$obj] = $map2;
H A Dweakmap_dtor_exception.phpt5 $map = new WeakMap;
7 $map[$obj] = new class {
/PHP-8.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 Dcp51932_encoding.phpt26 /* The table we are using tries to map as many Unicode codepoints into
42 /* We map the JIS X 0208 FULLWIDTH TILDE to U+FF5E (FULLWIDTH TILDE)
48 /* We map the JIS X 0208 PARALLEL TO symbol to U+2225 (PARALLEL TO),
72 unset($fromUnicode["\x00\xA9"]); // Don't map © to c
73 unset($fromUnicode["\x00\xAA"]); // Don't map feminine ordinal indicator
76 unset($fromUnicode["\x00\xAE"]); // Don't map ® to R
78 unset($fromUnicode["\x00\xB2"]); // Don't map ² to ordinary 2
79 unset($fromUnicode["\x00\xB3"]); // Don't map ³ to ordinary 3
80 unset($fromUnicode["\x00\xB5"]); // Don't map micro sign to Greek mu
82 unset($fromUnicode["\x00\xB8"]); // Don't map cedilla to fullwidth comma
[all …]
H A Dbug30549.phpt11 function test($enc, $map) {
14 foreach($map as $fromc => $toc) {
/PHP-8.2/ext/pcre/pcre2lib/
H A Dpcre2_script_run.c90 uint32_t map[FULL_MAPSIZE]; in PRIV() local
181 memcpy(require_map, map, FULL_MAPSIZE * sizeof(uint32_t)); in PRIV()
209 if (MAPBIT(map, ucp_Bopomofo) != 0) chspecial |= FOUND_BOPOMOFO; in PRIV()
210 if (MAPBIT(map, ucp_Hiragana) != 0) chspecial |= FOUND_HIRAGANA; in PRIV()
211 if (MAPBIT(map, ucp_Katakana) != 0) chspecial |= FOUND_KATAKANA; in PRIV()
212 if (MAPBIT(map, ucp_Hangul) != 0) chspecial |= FOUND_HANGUL; in PRIV()
230 if (MAPBIT(map, ucp_Han) + MAPBIT(map, ucp_Hiragana) + in PRIV()
231 MAPBIT(map, ucp_Katakana) == 0) return FALSE; in PRIV()
235 if (MAPBIT(map, ucp_Han) + MAPBIT(map, ucp_Bopomofo) == 0) return FALSE; in PRIV()
239 if (MAPBIT(map, ucp_Han) + MAPBIT(map, ucp_Hangul) == 0) return FALSE; in PRIV()
[all …]
/PHP-8.2/ext/ffi/tests/
H A Dweak_reference_004.phpt9 $map = new WeakMap();
18 $map[$ffi] = 'ffi';
19 $map[$cdata_value] = 'cdata_value';
20 $map[$cdata_array] = 'cdata_array';
21 $map[$cdata_free] = 'cdata_free';
22 $map[$ctype] = 'ctype';
24 var_dump(count($map) === 5);
32 var_dump(count($map) === 0);
/PHP-8.2/ext/filter/
H A Dsanitizing_filters.c154 if ((*map)[str[i]]) { in filter_map_apply()
299 filter_map map; in php_filter_email() local
301 filter_map_init(&map); in php_filter_email()
303 filter_map_apply(value, &map); in php_filter_email()
313 filter_map map; in php_filter_url() local
315 filter_map_init(&map); in php_filter_url()
317 filter_map_apply(value, &map); in php_filter_url()
326 filter_map map; in php_filter_number_int() local
328 filter_map_init(&map); in php_filter_number_int()
339 filter_map map; in php_filter_number_float() local
[all …]
/PHP-8.2/Zend/tests/enum/
H A Dweak-map.phpt10 $map = new WeakMap();
11 $map[TestEnum::A] = 'a string';
12 var_dump($map[TestEnum::A]);
13 var_dump($map[TestEnum::A]);
/PHP-8.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-8.2/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-8.2/Zend/tests/
H A Dgh16371.phpt6 $map = new WeakMap();
7 $it = $map->getIterator();
15 $map = new WeakMap();
17 $map[$obj] = 0;
21 $it = $map->getIterator();
/PHP-8.2/ext/random/tests/03_randomizer/
H A Dcompatibility_array_rand.phpt9 $map = ['foo' => 0, 'bar' => 1, 'baz' => 2];
14 $mapPickOneFunc = array_rand($map, 1);
15 $mapPickTwoFunc = array_rand($map, 2);
22 [$mapPickOneMethod] = $randomizer->pickArrayKeys($map, 1);
23 $mapPickTwoMethod = $randomizer->pickArrayKeys($map, 2);
/PHP-8.2/ext/fileinfo/libmagic/
H A Dapprentice.c405 mlp->map = NULL; in add_mlist()
409 ml->map = idx == 0 ? map : NULL; in add_mlist()
562 efree(map); in apprentice_unmap()
590 if (ml->map) in mlist_free_one()
1424 &map->magic[j], &map->nmagic[j]) == -1) { in apprentice_load()
1438 return map; in apprentice_load()
3089 map->p = CAST(void *, emalloc(map->len)); in apprentice_map()
3138 map->magic[0] = CAST(struct magic *, map->p) + 1; in apprentice_map()
3146 map->magic[i + 1] = map->magic[i] + map->nmagic[i]; in apprentice_map()
3156 byteswap(map->magic[i], map->nmagic[i]); in apprentice_map()
[all …]
/PHP-8.2/ext/fileinfo/tests/
H A Dbug78987.phpt13 $map = array(
29 printf("%-8d => %s\n", $size, $m <= $map[$size] ? "ok" : "$m");
/PHP-8.2/ext/soap/tests/
H A Dbug48557.phpt11 function test($map) {
12 var_dump($map, $map[1], $map[2]);die;
/PHP-8.2/ext/mbstring/libmbfl/filters/
H A Dmbfilter_sjis_mobile.h63 int mbfilter_conv_map_tbl(int c, int *w, const unsigned short map[][3], int n);
64 int mbfilter_conv_r_map_tbl(int c, int *w, const unsigned short map[][3], int n);
/PHP-8.2/Zend/Optimizer/
H A Dzend_call_graph.c250 zend_call_info **map, *call; in zend_build_call_map() local
256 map = zend_arena_calloc(arena, sizeof(zend_call_info *), op_array->last); in zend_build_call_map()
259 map[call->caller_init_opline - op_array->opcodes] = call; in zend_build_call_map()
261 map[call->caller_call_opline - op_array->opcodes] = call; in zend_build_call_map()
265 map[call->arg_info[i].opline - op_array->opcodes] = call; in zend_build_call_map()
269 return map; in zend_build_call_map()
H A Dcompact_literals.c157 int i, j, n, *map; in zend_optimizer_compact_literals() local
328 map[i] = l_null; in zend_optimizer_compact_literals()
340 map[i] = l_false; in zend_optimizer_compact_literals()
352 map[i] = l_true; in zend_optimizer_compact_literals()
359 map[i] = j; in zend_optimizer_compact_literals()
377 map[i] = j; in zend_optimizer_compact_literals()
397 map[i] = Z_LVAL_P(pos); in zend_optimizer_compact_literals()
399 map[i] = j; in zend_optimizer_compact_literals()
425 map[i] = j; in zend_optimizer_compact_literals()
457 map[i] = l_empty_arr; in zend_optimizer_compact_literals()
[all …]

Completed in 52 milliseconds

1234